@@ -106,7 +106,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
106
106
boolean ::= ("true" | "false") space
107
107
char ::= [^"\\] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F]{4})
108
108
decimal-part ::= [0-9]{1,16}
109
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
109
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
110
110
null ::= "null" space
111
111
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
112
112
object ::= "{" space ( string ":" space value ("," space string ":" space value)* )? "}" space
@@ -233,7 +233,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
233
233
"type": "integer"
234
234
})""" ,
235
235
R"""(
236
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
236
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
237
237
root ::= ("-"? integral-part) space
238
238
space ::= " "?
239
239
)"""
@@ -298,7 +298,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
298
298
R"""(
299
299
char ::= [^"\\] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F]{4})
300
300
decimal-part ::= [0-9]{1,16}
301
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
301
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
302
302
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
303
303
root ::= "[" space string "," space number "]" space
304
304
space ::= " "?
@@ -314,7 +314,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
314
314
})""" ,
315
315
R"""(
316
316
decimal-part ::= [0-9]{1,16}
317
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
317
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
318
318
root ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
319
319
space ::= " "?
320
320
)"""
@@ -381,7 +381,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
381
381
R"""(
382
382
decimal-part ::= [0-9]{1,16}
383
383
integer ::= ("-"? integral-part) space
384
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
384
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
385
385
item ::= number | integer
386
386
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
387
387
root ::= "[" space item ("," space item){2,4} "]" space
@@ -555,7 +555,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
555
555
additional-value ::= "[" space (number ("," space number)*)? "]" space
556
556
char ::= [^"\\] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F]{4})
557
557
decimal-part ::= [0-9]{1,16}
558
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
558
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
559
559
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
560
560
root ::= "{" space (additional-kvs )? "}" space
561
561
space ::= " "?
@@ -575,7 +575,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
575
575
boolean ::= ("true" | "false") space
576
576
char ::= [^"\\] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F]{4})
577
577
decimal-part ::= [0-9]{1,16}
578
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
578
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
579
579
null ::= "null" space
580
580
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
581
581
object ::= "{" space ( string ":" space value ("," space string ":" space value)* )? "}" space
@@ -597,7 +597,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
597
597
boolean ::= ("true" | "false") space
598
598
char ::= [^"\\] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F]{4})
599
599
decimal-part ::= [0-9]{1,16}
600
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
600
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
601
601
null ::= "null" space
602
602
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
603
603
object ::= "{" space ( string ":" space value ("," space string ":" space value)* )? "}" space
@@ -638,7 +638,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
638
638
additional-kvs ::= additional-kv ( "," space additional-kv )*
639
639
char ::= [^"\\] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F]{4})
640
640
decimal-part ::= [0-9]{1,16}
641
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
641
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
642
642
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
643
643
root ::= "{" space a-kv ( "," space ( additional-kvs ) )? "}" space
644
644
space ::= " "?
@@ -663,7 +663,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
663
663
additional-kvs ::= additional-kv ( "," space additional-kv )*
664
664
char ::= [^"\\] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F]{4})
665
665
decimal-part ::= [0-9]{1,16}
666
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
666
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
667
667
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
668
668
root ::= "{" space (a-kv a-rest | additional-kvs )? "}" space
669
669
space ::= " "?
@@ -691,7 +691,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
691
691
b-rest ::= additional-kvs
692
692
char ::= [^"\\] | "\\" (["\\/bfnrt] | "u" [0-9a-fA-F]{4})
693
693
decimal-part ::= [0-9]{1,16}
694
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
694
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
695
695
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
696
696
root ::= "{" space a-kv ( "," space ( b-kv b-rest | additional-kvs ) )? "}" space
697
697
space ::= " "?
@@ -755,7 +755,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
755
755
decimal-part ::= [0-9]{1,16}
756
756
foo ::= "{" space (foo-a-kv )? "}" space
757
757
foo-a-kv ::= "\"a\"" space ":" space number
758
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
758
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
759
759
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
760
760
root ::= alternative-0 | alternative-1
761
761
space ::= " "?
@@ -799,7 +799,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
799
799
d-kv ::= "\"d\"" space ":" space number
800
800
d-rest ::= ( "," space c-kv )?
801
801
decimal-part ::= [0-9]{1,16}
802
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
802
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
803
803
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
804
804
root ::= "{" space a-kv "," space b-kv ( "," space ( d-kv d-rest | c-kv ) )? "}" space
805
805
space ::= " "?
@@ -842,7 +842,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
842
842
})""" ,
843
843
R"""(
844
844
decimal-part ::= [0-9]{1,16}
845
- integral-part ::= [0] | [1-9] [0-9]{1 ,15}
845
+ integral-part ::= [0] | [1-9] [0-9]{0 ,15}
846
846
number ::= ("-"? integral-part) ("." decimal-part)? ([eE] [-+]? integral-part)? space
847
847
number- ::= "{" space number-number-kv "}" space
848
848
number-kv ::= "\"number\"" space ":" space number-
0 commit comments