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