There are always L0 rules, although sometimes they are implicit.  For
example (again, off the top of my head and untested), your fix might have
been

digit ::= '0' | '1'

Which is just syntactic sugar for a G1 rules and two L0 rules.

While you are getting used to Marpa, it may be better to write the L0 rules
out explicitly.  By the way, if you've ever used a parser generator like
yacc or bison, Marpa's G1/L0 distinction is exactly yacc/bison's grammar
vs. lexer distinction.

On Fri, Mar 13, 2015 at 9:40 PM, <[email protected]> wrote:

>
>>
> Thank you, Jeffrey!
>
> I thought it is normal case (a less or more) when no L0 rules at all for
> small grammars.
>
>
> --
> 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.

Reply via email to