Parsing: accept '+' prefix on numbers
This commit is contained in:
parent
d75191b480
commit
a2024f4111
|
@ -34,7 +34,7 @@ grammar "Preserves":
|
|||
Boolean <- "#f" | "#t"
|
||||
|
||||
nat <- '0' | (Digit-'0') * *Digit
|
||||
int <- ?'-' * nat
|
||||
int <- ?('-'|'+') * nat
|
||||
frac <- '.' * +Digit
|
||||
exp <- 'e' * ?('-'|'+') * +Digit
|
||||
flt <- int * ((frac * exp) | frac | exp)
|
||||
|
|
Loading…
Reference in New Issue