Parsing: accept '+' prefix on numbers

This commit is contained in:
Emery Hemingway 2023-12-22 20:57:53 +02:00
parent d75191b480
commit a2024f4111
1 changed files with 1 additions and 1 deletions

View File

@ -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)