in reply to Re: Parse::RecDescent Grammar Questions
in thread Parse::RecDescent Grammar Questions

Thanks very much - that's exactly what I was looking for. And very nice tips to boot.

Still trying to wrap my head around exactly how this does it's job:

def        : IDENTdef_[ $item[1] ]

But I'll run it through with the -RD_TRACE flag a few times to figure it out...

Now to build a sensible data structure out of all this parsed data - gotta think about this a bit.

Replies are listed 'Best First'.
Re^3: Parse::RecDescent Grammar Questions
by ikegami (Patriarch) on May 21, 2008 at 02:31 UTC
    It passes an argument ($item[1], which contains what IDENT matched) to def_, which can access it via @arg.
      Yes, didn't notice the discussion of Subrule Argument Lists - got it now.