# Yacc Form of grammar Calculator.grm

Copyright © 2013 by Hassan Aït-Kaci; All Rights Reserved.

This yacc grammar was generated on Tue Jan 29 12:24:46 CET 2013 from the annotated Jacc grammar file `Calculator.grm`.

    Session
    	: Actions Exit
    	;

    Actions
    	: /* empty */
    	| Actions Action
    	;

    Action
    	: Expression ';'
    	| Definition ';'
    	| error ';'
    	;

    Expression
    	: IDENTIFIER
    	| NUMBER
    	| Expression '+' Expression
    	| Expression '-' Expression
    	| Expression '*' Expression
    	| Expression '/' Expression
    	| '-' Expression
    	| '(' Expression ')'
    	;

    Definition
    	: IDENTIFIER '=' Expression
    	;

    Exit
    	: 'exit' ';'
    	;

Copyright © 2013 by Hassan Aït-Kaci; All Rights Reserved.