Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. program = $declarations;
  2.  
  3. declarations = linkage_decl | data_decl | code_decl;
  4.  
  5. asign = id '=' expr ';' :ASSIGN!2 arith_gen(*1);
  6. expr = term $(('+':ADD | '-':SUB) term !2);
  7. term = factor $(('*':MPY | '//' :REM | '/':DIV) factor!2);
  8. factor = id | number | '(' expr ')';
  9.  
  10. x = a + (b - c) / d;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement