in reply to S-expressions with Marpa::R2: Grammar for Numbers
I can't test it but I would start with:
atom ::= string | number | symbol number ::= SIGN? DIGITS action => Sexp::Tiny::Actions::do_join SIGN ~ "+" | "-" DIGITS ~ [0-9] # Exclude the new starting characters for numbers from the "symbol" ch +aracter class SYMCHAR ~ [^()\s"0-9+-]
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: S-expressions with Marpa::R2: Grammar for Numbers
by choroba (Cardinal) on Dec 22, 2025 at 22:25 UTC | |
by Fletch (Bishop) on Dec 23, 2025 at 15:41 UTC |