Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %token IF
- %nonassoc IFX
- %nonassoc ELSE
- ...
- stmt: IF '(' exp ')' stmts %prec IFX
- | IF '(' exp ')' stmts ELSE stmts
- // stmts is sth like that
- stmts: stmt
- | '{' stmt '}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement