Manual
Manual
Manual
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
90 Bison 2.3<br />
. . .<br />
The next section lists states that still have conflicts.<br />
State 8 conflicts: 1 shift/reduce<br />
State 9 conflicts: 1 shift/reduce<br />
State 10 conflicts: 1 shift/reduce<br />
State 11 conflicts: 4 shift/reduce<br />
The next section reports useless tokens, nonterminal and rules. Useless nonterminals and<br />
rules are removed in order to produce a smaller parser, but useless tokens are preserved,<br />
since they might be used by the scanner (note the difference between “useless” and “not<br />
used” below):<br />
Useless nonterminals:<br />
useless<br />
Terminals which are not used:<br />
STR<br />
Useless rules:<br />
#6 useless: STR;<br />
The next section reproduces the exact grammar that Bison used:<br />
Grammar<br />
Number, Line, Rule<br />
0 5 $accept -> exp $end<br />
1 5 exp -> exp ’+’ exp<br />
2 6 exp -> exp ’-’ exp<br />
3 7 exp -> exp ’*’ exp<br />
4 8 exp -> exp ’/’ exp<br />
5 9 exp -> NUM<br />
and reports the uses of the symbols:<br />
Terminals, with rules where they appear<br />
$end (0) 0<br />
’*’ (42) 3<br />
’+’ (43) 1<br />
’-’ (45) 2<br />
’/’ (47) 4<br />
error (256)<br />
NUM (258) 5<br />
Nonterminals, with rules where they appear<br />
$accept (8)<br />
on left: 0<br />
exp (9)<br />
on left: 1 2 3 4 5, on right: 0 1 2 3 4