in reply to Re^3: how to match entire buffer with Parse::RecDescent
in thread how to match entire buffer with Parse::RecDescent

I did use a "$return" as described in the 2nd GOTCHA. Even when I specify a "print" instruction as the 1st instruction to my program I still receive a parsing error
Enter --> print a ERROR (line 1): Invalid instruction: Was expecting assign instr +uction, or print instruction Error returned by parsing Enter -->

Replies are listed 'Best First'.
Re^5: how to match entire buffer with Parse::RecDescent
by vr (Curate) on Mar 05, 2019 at 17:05 UTC

    Can you show your complete code (reduced to Short, Self-Contained, Correct Example)? Fixing 2nd gotcha worked for me, but I'm afraid since I don't have the harness I had to quickly build my own and very ugly one, won't look good in an answer.