/* yacc source for postfix expressions */ /* the token list defines the terminal symbols */ %token PLUS TIMES OPERAND LPAR RPAR %% fullexpression: expression expression: term |expression PLUS term term: factor |term TIMES factor factor: OPERAND |LPAR expression RPAR ; %%