Klaas-Jan Stol wrote:
Unless I misunderstood the Yacc/bison manual, the /order/ in which the operator associativity is declared, defines the precedence, from top to bottom in increasing order. So:

%left '+' '-'
%left '*' '/' '%'

means that *, / and % take precedence over + and -.

Aye, but the intended semantics for Perl 1 aren't documented outside the parser, while they are well documented for Perl 5 in perlop.

For a fun bit of trivia, spend some time comparing Perl 1's perl.y and Perl 5's perly.y. Amazing how much still persists after 20 years.

Allison

Reply via email to