Advertisement
gavrilo93

Zadata 3 Programski prevodioci

Nov 15th, 2014
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.28 KB | None | 0 0
  1. do while
  2.  
  3. do_while_statement
  4.     :
  5.      _DO statement _WHILE _LPAREN _D _RELOP literal _RPAREN _SEMICOLON
  6.         {
  7.             int idx;
  8.             if( (idx = lookup_symbol($5, VAR|PAR))==-1)
  9.                 err("'%s' undeclared" ,$5);
  10.             if(!=check_types(idx, $7))
  11.                 err("Incompotable types in do while");
  12.  
  13.         }
  14.     ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement