Allow leading zeros when parsing numbers
This commit is contained in:
parent
d3a236bb92
commit
d1e3b00134
|
@ -34,7 +34,7 @@ grammar "Preserves":
|
|||
|
||||
Boolean <- '#' * {'f', 't'} * &delimiter
|
||||
|
||||
nat <- '0' | (Digit-'0') * *Digit
|
||||
nat <- +Digit
|
||||
int <- ?('-'|'+') * nat
|
||||
frac <- '.' * +Digit
|
||||
exp <- 'e' * ?('-'|'+') * +Digit
|
||||
|
|
Loading…
Reference in New Issue