in reply to Re: Parse::RecDescent and auto{actions,trees} and stuff
in thread Parse::RecDescent and auto{actions,trees} and stuff

Hi,

Well that explains things nicely and fixs for me my autoaction issue :-)

But any idea why autotree won't work ?

:-(
  • Comment on Re^2: Parse::RecDescent and auto{actions,trees} and stuff

Replies are listed 'Best First'.
Re^3: Parse::RecDescent and auto{actions,trees} and stuff
by pc88mxer (Vicar) on Jul 16, 2008 at 16:15 UTC
    <autotree> only specifies actions for those rules which don't already have actions.
      I get the fact it only works for rules without actions (but I could be missing something here). But I don't get why it breaks my code and stops the recursion as it shouldn't affect the custom case...
        Because you assumes cpu_num returns a number ($arg[0]-1), but it returns a blessed object when <autotree> is used.