Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.79 KB | None | 0 0
  1.  
  2. Statement:
  3. ID ASSIGN Expr {;}
  4. | LBRACE StatementSEMICOLON RBRACE {;}
  5. | IF Expr LBRACE StatementSEMICOLON RBRACE {;}
  6. | IF Expr LBRACE StatementSEMICOLON RBRACE ELSE LBRACE StatementSEMICOLON RBRACE {;}
  7. | FOR Expr LBRACE StatementSEMICOLON RBRACE {;}
  8. | FOR LBRACE StatementSEMICOLON RBRACE {;}
  9.  
  10. | RETURN {;}
  11. | RETURN Expr {;}
  12.  
  13. | FuncInvocation {;}
  14. | ParseArgs {;}
  15.  
  16. | PRINT LPAR StatementExprSTRLIT RPAR {;}
  17.  
  18. | error {;}
  19. ;
  20.  
  21. StatementSEMICOLON:
  22. StatementSEMICOLON Statement SEMICOLON {;}
  23. | Statement SEMICOLON {;}
  24. ;
  25.  
  26. StatementExprSTRLIT:
  27. Expr {;}
  28. | STRLIT {;}
  29. ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement