This yacc grammar was generated on Fri Oct 19 10:18:50 PDT 2012 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 © 2012 by Hassan Aït-Kaci; All Rights Reserved.