in reply to Eliminating Left Recursion in Parse::RecDescent
I use the {1} here to emulate the behaviour of an e match. Perhaps theres a better way, if so let me know.
Just use nothing.
expr : term expr_tail expr_tail : '+' term expr_tail |
or
expr : term expr_tail expr_tail : '+' term expr_tail |
or a comment
expr : term expr_tail expr_tail : '+' term expr_tail | # Nothing
or an empty rule
expr : term expr_tail expr_tail : '+' term expr_tail | Epsilon Epsilon :
|
---|
In Section
Meditations