SHARE
TWEET

Untitled

a guest Jul 10th, 2019 139 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. statements : statement statements
  2. statements : label statement statements
  3. statements :
  4. statement : def-statement
  5. statement : expr
  6. statement : if-elif-else-statement
  7. statement : while-statement
  8. statement : for-statement
  9. statement : goto-statement
  10. statement : break-statement
  11. statement : continue-statement
  12. statement : do-while-statement
  13. statement : repeat-until-statement
  14. statement : return-statement
  15. def-statement :
  16. def-statement : type-expr 'id' '=' expr ';'
  17. def-statement : type-expr 'id' ';'
  18. return-statement : 'id'
  19. if-elif-else-statement : 'if' '(' expr ')' statement-block elif-list maybe-else
  20. statement-block : '{' statements '}'
  21. statement-block : statement
  22. elif-list :
  23. elif-list : 'elseif' '(' expr ')' statement-block elif-list
  24. maybe-else :
  25. maybe-else : 'else' statement-block
  26. while-statement : 'while' '(' expr ')' statement-block
  27. for-statement : 'for' '('def-statement ';' expr ';' expr ')' statement-block
  28. goto-statement : 'goto' 'id' ';'
  29. break-statement : 'break' ';'
  30. continue-statement : 'continue' ';'
  31. do-while-statement : 'do' statement-block 'while' '(' expr ')'
  32. repeat-until-statement : 'repeat' statement-block 'until' '(' expr ')'
  33. return-statement : 'return' expr
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top