PerlOnTheWay has asked for the wisdom of the Perl Monks concerning the following question:
This is in the first rule of Perl:
grammar : GRAMPROG { PL_parser->expect = XSTATE; } remember stmtseq { newPROG(block_end($3,$4)); $$ = 0; }
How can `$4` work when there're only `3` elements on the right side?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Where does $4 come from here?
by ikegami (Patriarch) on Jul 27, 2011 at 08:34 UTC | |
by PerlOnTheWay (Monk) on Jul 27, 2011 at 08:46 UTC | |
|
Re: Where does $4 come from here?
by Anonymous Monk on Jul 27, 2011 at 07:52 UTC | |
by PerlOnTheWay (Monk) on Jul 27, 2011 at 07:59 UTC | |
by Anonymous Monk on Jul 27, 2011 at 08:11 UTC | |
by PerlOnTheWay (Monk) on Jul 27, 2011 at 08:17 UTC |