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

I see. So I tried to fix (so it will run, not necessarily do want I want) by doing this.

cpu_num: int { $item[1] }

i.e., fixing the return value so that the recursion works assuming as an action is specified <autotree> won't overwrite it.

However it still fails...

UPDATE: I just reliased I needed to do the same of int: for it too leap into life. :-)

I guess I need to somehow manually bless the lines with actions defined in order to flush out my parse tree....

Replies are listed 'Best First'.
Re^7: Parse::RecDescent and auto{actions,trees} and stuff
by ikegami (Patriarch) on Jul 17, 2008 at 19:20 UTC
    I find it very valuable to seperate tokens from non-token rules. And I find very little worth in <auto...>
    cpus : INT cpu_list[ $item[1] ] { [ $item[0], $item[2] ] } INT : /\d+/ # Add "{ $item[1] }" if using "<auto...>"