repo.or.cz
/
bison.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
package: fix details after merge with 3.7.5
[bison.git]
/
doc
/
calc.y
blob
6f468b2001c63686e121ddc7bf08db0479172a9a
1
%
union
2
{
3
int
ival
;
4
const char
*
sval
;
5
}
6
7
%token
<
ival
>
NUM
8
%nterm
<
ival
>
exp
9
%token
<
sval
>
STR
10
%nterm
<
sval
>
useless
11
12
%left
'+'
'-'
13
%left
'*'
14
15
%%
16
exp:
17
exp
'+'
exp
18
| exp
'-'
exp
19
| exp
'*'
exp
20
| exp
'/'
exp
21
| NUM
22
;
23
useless:
STR
;