# Yacc Form of grammar RegExp.grm

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

This yacc grammar was generated on Tue Jan 29 08:33:38 CET 2013 from the annotated Jacc grammar file `RegExp.grm`.

    Session
    	: Actions Exit_opt
    	;

    Actions
    	: /* empty */
    	| Actions Action
    	;

    Action
    	: RegularExpression ';'
    	| Definition ';'
    	| 'help' ';'
    	| 'syntax' ';'
    	| 'trace' ';'
    	| error ';'
    	;

    RegularExpression
    	: '(' ')'
    	| IDENTIFIER
    	| RegularExpression '|' RegularExpression
    	| RegularExpression '.' RegularExpression
    	| RegularExpression '?'
    	| RegularExpression '+'
    	| RegularExpression '*'
    	| RegularExpression '^' NUMBER
    	| RegularExpression '_' NUMBER '^' NUMBER
    	| RegularExpression '_' NUMBER '~'
    	| '(' RegularExpression ')'
    	;

    Definition
    	: IDENTIFIER '=' RegularExpression
    	;

    Exit
    	: 'quit' ';'
    	;

    Exit_opt
    	: /* empty */
    	| Exit
    	;

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