Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- program = $declarations;
- declarations = linkage_decl | data_decl | code_decl;
- asign = id '=' expr ';' :ASSIGN!2 arith_gen(*1);
- expr = term $(('+':ADD | '-':SUB) term !2);
- term = factor $(('*':MPY | '//' :REM | '/':DIV) factor!2);
- factor = id | number | '(' expr ')';
- x = a + (b - c) / d;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement