package: fix details after merge with 3.7.5
[bison.git] / doc / calc.y
blob6f468b2001c63686e121ddc7bf08db0479172a9a
1 %union
3 int ival;
4 const char *sval;
7 %token <ival> NUM
8 %nterm <ival> exp
9 %token <sval> STR
10 %nterm <sval> useless
12 %left '+' '-'
13 %left '*'
16 exp:
17 exp '+' exp
18 | exp '-' exp
19 | exp '*' exp
20 | exp '/' exp
21 | NUM
23 useless: STR;