Advertisement
Guest User

Untitled

a guest
May 13th, 2012
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.18 KB | None | 0 0
  1. %token IF
  2.  
  3. %nonassoc IFX
  4. %nonassoc ELSE
  5. ...
  6. stmt: IF '(' exp ')' stmts %prec IFX
  7.     | IF '(' exp ')' stmts ELSE stmts
  8.  
  9. // stmts is sth like that
  10. stmts: stmt
  11.      | '{' stmt '}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement