Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Condition() {
  2.     if(exprStart.get(sym)) {
  3.         CondTerm();
  4.         while(sym == or) {
  5.             scan();
  6.             CondTerm();
  7.         }
  8.     }
  9. }
  10.  
  11. CondTerm() {
  12.     if(exprStart.get(sym)) {
  13.         CondFact();
  14.         while(sym == and) {
  15.             scan();
  16.             CondFact();
  17.         }
  18.     }
  19. }
  20.  
  21. CondFact() {
  22.     if(exprStart.get(sym)) {
  23.         Expr();
  24.         Relop();
  25.         Expr();
  26.     }
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement