I don't think you need to use [','] for comma as it's a character class and the single quotes are superfluous. Try separator => comma and define comma as ','.
Rule should just list: Script ::= Number separator => comma On Apr 30, 2014, at 2:51, Ion Toloaca <[email protected]> wrote: > I changed the lexeme for error to [\s\S] and used priorities, this finally > seems to work as intended. > (for some reason it didn't work until I replaced ',' with comma, comma ~[','] > and gave it also a priority). > > Now this project seems more achievable, thank you. > > :start ::= Script > Script ::= Number comma Number action => do_printNr > | Any > > Any ::= anyToken > | anyToken Any > anyToken ~ [\s\S] > comma ~ [','] > :lexeme ~ comma priority => 10 > :lexeme ~ <anyToken> priority => -10 > :lexeme ~ Number priority => 10 > Number ~ digits > digits ~ [\d]+ > -- > You received this message because you are subscribed to the Google Groups > "marpa parser" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "marpa parser" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
