| YACC |
non-term : BODY-1 | . . . | BODY-n ;
expr : expr '+' term
%token name
#define's associating token names that can
be used in the scanner with the numbers assigned.
%token MONTH
%token NUMBER
%%
date : day MONTH year
| monthnum '/' day '/' year
| MONTH day ',' year
;
monthnum : NUMBER ;
day : NUMBER ;
year : NUMBER ;
# define MONTH 257 # define NUMBER 258
| YACC |