# Yacc Form of grammar Calculator.grm

Copyright © 2006 ILOG, Inc.; All Rights Reserved.

This yacc grammar was generated on Thu Aug 31 09:33:06 PDT 2006 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 © 2006 ILOG, Inc.; All Rights Reserved.