From d47f5374844e3e3227e23847a89dd9088b544946 Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Wed, 24 Apr 2024 12:05:04 +0100 Subject: [PATCH] Update examples/json_schema_to_grammar.py Co-authored-by: Clint Herron --- examples/json_schema_to_grammar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/json_schema_to_grammar.py b/examples/json_schema_to_grammar.py index f11782c62..c8742efd6 100755 --- a/examples/json_schema_to_grammar.py +++ b/examples/json_schema_to_grammar.py @@ -36,7 +36,7 @@ SPACE_RULE = '" "?' PRIMITIVE_RULES = { 'boolean' : BuiltinRule('("true" | "false") space', []), 'decimal-part' : BuiltinRule('[0-9]{1,16}', []), - 'integral-part': BuiltinRule('[0-9] | [1-9] [0-9]{0,15}', []), + 'integral-part': BuiltinRule('[0-9] | [1-9] [0-9]{1,15}', []), 'number' : BuiltinRule('("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space', ['integral-part', 'decimal-part']), 'integer' : BuiltinRule('("-"? integral-part) space', ['integral-part']), 'value' : BuiltinRule('object | array | string | number | boolean | null', ['object', 'array', 'string', 'number', 'boolean', 'null']),