We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 575b6dc commit 8451cdbCopy full SHA for 8451cdb
examples/json_schema_to_grammar.py
@@ -12,8 +12,9 @@
12
13
PRIMITIVE_RULES = {
14
'boolean': '("true" | "false") space',
15
- 'integral-part': '[0-9] | [1-9] [0-9]? [0-9]? [0-9]? [0-9]? [0-9]? [0-9]? [0-9]? [0-9]? [0-9]? [0-9]?',
16
- 'decimal-part': '[0-9] [0-9]? [0-9]? [0-9]? [0-9]? [0-9]? [0-9]? [0-9]? [0-9]? [0-9]? [0-9]?',
+ 'decimal-part': '[0-9] ([0-9] ([0-9] ([0-9] ([0-9] ([0-9] ([0-9] ([0-9] ([0-9] ([0-9] [0-9]?)?)?)?)?)?)?)?)?)?',
+ 'integral-part': '[0-9] | [1-9] ([0-9] ([0-9] ([0-9] ([0-9] ([0-9] ([0-9] ([0-9] ([0-9] ([0-9] [0-9]?)?)?)?)?)?)?)?)?)?',
17
+
18
# 'number': '("-"? ([0-9] | [1-9] [0-9]*)) ("." [0-9]+)? ([eE] [-+]? [0-9]+)? space',
19
# 'integer': '("-"? ([0-9] | [1-9] [0-9]*)) space',
20
'number': '("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space',
0 commit comments