http://www.perlmonks.org?node_id=1173110


in reply to Operator Associativity and Eliminating Left-Recursion in Parse::RecDescent

Typo: This line,
pow_ : '**' pow { [ $item[2], $arg[0], $item[3] ] }
should instead be:
pow_ : '**' pow { [ $item[1], $arg[0], $item[2] ] }
The correct version is there in the code, but not in its earlier description. Very nice article, thanks!

Replies are listed 'Best First'.
Re^2: Operator Associativity and Eliminating Left-Recursion in Parse::RecDescent
by ikegami (Patriarch) on Oct 03, 2016 at 20:35 UTC

    Fixed.