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.
Appendix A: Bison Symbols 117<br />
Appendix A Bison Symbols<br />
@$<br />
@n<br />
$$<br />
$n<br />
%%<br />
[Variable]<br />
In an action, the location of the left-hand side of the rule. See Section 3.6 [Locations<br />
Overview], page 51.<br />
[Variable]<br />
In an action, the location of the n-th symbol of the right-hand side of the rule. See<br />
Section 3.6 [Locations Overview], page 51.<br />
[Variable]<br />
In an action, the semantic value of the left-hand side of the rule. See Section 3.5.3<br />
[Actions], page 47.<br />
[Variable]<br />
In an action, the semantic value of the n-th symbol of the right-hand side of the rule.<br />
See Section 3.5.3 [Actions], page 47.<br />
[Delimiter]<br />
Delimiter used to separate the grammar rule section from the Bison declarations<br />
section or the epilogue. See Section 1.9 [The Overall Layout of a Bison Grammar],<br />
page 22.<br />
%{code%}<br />
[Delimiter]<br />
All code listed between ‘%{’ and ‘%}’ is copied directly to the output file uninterpreted.<br />
Such code forms the prologue of the input file. See Section 3.1 [Outline of a Bison<br />
Grammar], page 41.<br />
/*...*/<br />
Comment delimiters, as in C.<br />
[Construct]<br />
:<br />
[Delimiter]<br />
Separates a rule’s result from its components. See Section 3.3 [Syntax of Grammar<br />
Rules], page 44.<br />
;<br />
Terminates a rule. See Section 3.3 [Syntax of Grammar Rules], page 44.<br />
[Delimiter]<br />
|<br />
[Delimiter]<br />
Separates alternate rules for the same result nonterminal. See Section 3.3 [Syntax of<br />
Grammar Rules], page 44.<br />
$accept<br />
[Symbol]<br />
The predefined nonterminal whose only rule is ‘$accept: start $end’, where start<br />
is the start symbol. See Section 3.7.9 [The Start-Symbol], page 58. It cannot be used<br />
in the grammar.<br />
%debug<br />
[Directive]<br />
Equip the parser for debugging. See Section 3.7.11 [Decl Summary], page 59.