8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 02:03:04 +01:00
firebird-mirror/extern/btyacc/test/t1.y
2006-04-19 09:53:27 +00:00

23 lines
250 B
Plaintext

%left LO '+' '-'
%left HI '*' '/' '%'
%nonassoc UNARY
%%
expr: expr op1 expr %prec LO
| expr op2 expr %prec HI
| unary expr %prec UNARY
;
op1 : '+'
| '-'
;
op2 : '*'
| '/'
| '%'
;
unary : '+' | '-' | '*' | '&' ;