https://metacpan.org/pod/distribution/Marpa-R2/pod/Tracing.pod
On Sat, Mar 14, 2015 at 2:32 PM, Максим Суслов <[email protected]> wrote: > > MS> I thought it is normal case (a less or more) when no L0 rules at all > for small grammars. > JK> There are always L0 rules, although sometimes they are implicit > Yes, of course I mean "no L0 rules"="no explicit L0 rules"! :) > > > JK> it may be better to write the L0 rules out explicitly. > Why? Can you please explain this? > > BTW, you wrote on https://metacpan.org/pod/Marpa::R2::Scanless::DSL that: > > Character classes are always interpreted at the L0 level, but they may be > used in either structural or lexical rules. When a character class is used > in a structural rule, Marpa creates a virtual L0 rule on behalf of the > application. This is handy, but it does have a real disadvantage -- the > name of the virtual rule's LHS will be one assigned automatically by Marpa. > When tracing and debugging parses and grammars, these virtual LHS's can be > harder for a programmer to interpret. > > How I can debug parses and 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.
