/usr/share/doc/bison-doc/html/Table-of-Symbols.html is in bison-doc 1:3.0.2-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<!--
This manual (23 October 2013) is for GNU Bison (version
3.0.2), the GNU parser generator.
Copyright (C) 1988-1993, 1995, 1998-2013 Free Software
Foundation, Inc.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.3 or any later version published by the Free Software
Foundation; with no Invariant Sections, with the Front-Cover texts
being "A GNU Manual," and with the Back-Cover Texts as in
(a) below. A copy of the license is included in the section entitled
"GNU Free Documentation License."
(a) The FSF's Back-Cover Text is: "You have the freedom to copy and
modify this GNU manual. Buying copies from the FSF
supports it in developing GNU and promoting software
freedom." -->
<!-- Created by GNU Texinfo 5.2, http://www.gnu.org/software/texinfo/ -->
<head>
<title>Bison 3.0.2: Table of Symbols</title>
<meta name="description" content="Bison 3.0.2: Table of Symbols">
<meta name="keywords" content="Bison 3.0.2: Table of Symbols">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link href="index.html#Top" rel="start" title="Top">
<link href="Index-of-Terms.html#Index-of-Terms" rel="index" title="Index of Terms">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="index.html#Top" rel="up" title="Top">
<link href="Glossary.html#Glossary" rel="next" title="Glossary">
<link href="Mailing-Lists.html#Mailing-Lists" rel="prev" title="Mailing Lists">
<style type="text/css">
<!--
a.summary-letter {text-decoration: none}
blockquote.smallquotation {font-size: smaller}
div.display {margin-left: 3.2em}
div.example {margin-left: 3.2em}
div.indentedblock {margin-left: 3.2em}
div.lisp {margin-left: 3.2em}
div.smalldisplay {margin-left: 3.2em}
div.smallexample {margin-left: 3.2em}
div.smallindentedblock {margin-left: 3.2em; font-size: smaller}
div.smalllisp {margin-left: 3.2em}
kbd {font-style:oblique}
pre.display {font-family: inherit}
pre.format {font-family: inherit}
pre.menu-comment {font-family: serif}
pre.menu-preformatted {font-family: serif}
pre.smalldisplay {font-family: inherit; font-size: smaller}
pre.smallexample {font-size: smaller}
pre.smallformat {font-family: inherit; font-size: smaller}
pre.smalllisp {font-size: smaller}
span.nocodebreak {white-space:nowrap}
span.nolinebreak {white-space:nowrap}
span.roman {font-family:serif; font-weight:normal}
span.sansserif {font-family:sans-serif; font-weight:normal}
ul.no-bullet {list-style: none}
-->
</style>
</head>
<body lang="en" bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">
<a name="Table-of-Symbols"></a>
<div class="header">
<p>
Next: <a href="Glossary.html#Glossary" accesskey="n" rel="next">Glossary</a>, Previous: <a href="FAQ.html#FAQ" accesskey="p" rel="prev">FAQ</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index-of-Terms.html#Index-of-Terms" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<a name="Bison-Symbols"></a>
<h2 class="appendix">Appendix A Bison Symbols</h2>
<a name="index-Bison-symbols_002c-table-of"></a>
<a name="index-symbols-in-Bison_002c-table-of"></a>
<dl>
<dt><a name="index-_0040-2"></a>Variable: <strong>@</strong> <em>$</em></dt>
<dd><p>In an action, the location of the left-hand side of the rule.
See <a href="Tracking-Locations.html#Tracking-Locations">Tracking Locations</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0040-3"></a>Variable: <strong>@</strong> <em><var>n</var></em></dt>
<dt><a name="index-_0040-4"></a>Symbol: <strong>@</strong> <em><var>n</var></em></dt>
<dd><p>In an action, the location of the <var>n</var>-th symbol of the right-hand side
of the rule. See <a href="Tracking-Locations.html#Tracking-Locations">Tracking Locations</a>.
</p>
<p>In a grammar, the Bison-generated nonterminal symbol for a mid-rule action
with a semantical value. See <a href="Mid_002dRule-Action-Translation.html#Mid_002dRule-Action-Translation">Mid-Rule Action Translation</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0040-5"></a>Variable: <strong>@</strong> <em><var>name</var></em></dt>
<dt><a name="index-_0040-6"></a>Variable: <strong>@</strong> <em>[<var>name</var>]</em></dt>
<dd><p>In an action, the location of a symbol addressed by <var>name</var>.
See <a href="Tracking-Locations.html#Tracking-Locations">Tracking Locations</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0024-1"></a>Symbol: <strong>$</strong> <em>@<var>n</var></em></dt>
<dd><p>In a grammar, the Bison-generated nonterminal symbol for a mid-rule action
with no semantical value. See <a href="Mid_002dRule-Action-Translation.html#Mid_002dRule-Action-Translation">Mid-Rule Action Translation</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0024_0024-1"></a>Variable: <strong>$$</strong></dt>
<dd><p>In an action, the semantic value of the left-hand side of the rule.
See <a href="Actions.html#Actions">Actions</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0024-2"></a>Variable: <strong>$</strong> <em><var>n</var></em></dt>
<dd><p>In an action, the semantic value of the <var>n</var>-th symbol of the
right-hand side of the rule. See <a href="Actions.html#Actions">Actions</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0024-3"></a>Variable: <strong>$</strong> <em><var>name</var></em></dt>
<dt><a name="index-_0024_005b"></a>Variable: <strong>$[</strong> <em><var>name</var>]</em></dt>
<dd><p>In an action, the semantic value of a symbol addressed by <var>name</var>.
See <a href="Actions.html#Actions">Actions</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025_0025-1"></a>Delimiter: <strong>%%</strong></dt>
<dd><p>Delimiter used to separate the grammar rule section from the
Bison declarations section or the epilogue.
See <a href="Grammar-Layout.html#Grammar-Layout">The Overall Layout of a Bison Grammar</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025-1"></a>Delimiter: <strong>%</strong> <em>{<var>code</var>%}</em></dt>
<dd><p>All code listed between ‘<samp>%{</samp>’ and ‘<samp>%}</samp>’ is copied verbatim
to the parser implementation file. Such code forms the prologue of
the grammar file. See <a href="Grammar-Outline.html#Grammar-Outline">Outline of a Bison
Grammar</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025_003f-1"></a>Directive: <strong>%?</strong> <em>{<var>expression</var>}</em></dt>
<dd><p>Predicate actions. This is a type of action clause that may appear in
rules. The expression is evaluated, and if false, causes a syntax error. In
GLR parsers during nondeterministic operation,
this silently causes an alternative parse to die. During deterministic
operation, it is the same as the effect of YYERROR.
See <a href="Semantic-Predicates.html#Semantic-Predicates">Semantic Predicates</a>.
</p>
<p>This feature is experimental.
More user feedback will help to determine whether it should become a permanent
feature.
</p></dd></dl>
<dl>
<dt><a name="index-_002f_002a"></a>Construct: <strong>/*</strong> <em>… */</em></dt>
<dt><a name="index-_002f_002f"></a>Construct: <strong>//</strong> <em>…</em></dt>
<dd><p>Comments, as in C/C++.
</p></dd></dl>
<dl>
<dt><a name="index-_003a"></a>Delimiter: <strong>:</strong></dt>
<dd><p>Separates a rule’s result from its components. See <a href="Rules.html#Rules">Syntax of
Grammar Rules</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_003b"></a>Delimiter: <strong>;</strong></dt>
<dd><p>Terminates a rule. See <a href="Rules.html#Rules">Syntax of Grammar Rules</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_007c-1"></a>Delimiter: <strong>|</strong></dt>
<dd><p>Separates alternate rules for the same result nonterminal.
See <a href="Rules.html#Rules">Syntax of Grammar Rules</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_003c_002a_003e-2"></a>Directive: <strong><*></strong></dt>
<dd><p>Used to define a default tagged <code>%destructor</code> or default tagged
<code>%printer</code>.
</p>
<p>This feature is experimental.
More user feedback will help to determine whether it should become a permanent
feature.
</p>
<p>See <a href="Destructor-Decl.html#Destructor-Decl">Freeing Discarded Symbols</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_003c_003e-2"></a>Directive: <strong><></strong></dt>
<dd><p>Used to define a default tagless <code>%destructor</code> or default tagless
<code>%printer</code>.
</p>
<p>This feature is experimental.
More user feedback will help to determine whether it should become a permanent
feature.
</p>
<p>See <a href="Destructor-Decl.html#Destructor-Decl">Freeing Discarded Symbols</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0024accept"></a>Symbol: <strong>$accept</strong></dt>
<dd><p>The predefined nonterminal whose only rule is ‘<samp>$accept: <var>start</var>
$end</samp>’, where <var>start</var> is the start symbol. See <a href="Start-Decl.html#Start-Decl">The
Start-Symbol</a>. It cannot be used in the grammar.
</p></dd></dl>
<dl>
<dt><a name="index-_0025code-9"></a>Directive: <strong>%code</strong> <em>{<var>code</var>}</em></dt>
<dt><a name="index-_0025code-10"></a>Directive: <strong>%code</strong> <em><var>qualifier</var> {<var>code</var>}</em></dt>
<dd><p>Insert <var>code</var> verbatim into the output parser source at the
default location or at the location specified by <var>qualifier</var>.
See <a href="_0025code-Summary.html#g_t_0025code-Summary">%code Summary</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025debug-2"></a>Directive: <strong>%debug</strong></dt>
<dd><p>Equip the parser for debugging. See <a href="Decl-Summary.html#Decl-Summary">Decl Summary</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025define-9"></a>Directive: <strong>%define</strong> <em><var>variable</var></em></dt>
<dt><a name="index-_0025define-10"></a>Directive: <strong>%define</strong> <em><var>variable</var> <var>value</var></em></dt>
<dt><a name="index-_0025define-11"></a>Directive: <strong>%define</strong> <em><var>variable</var> {<var>value</var>}</em></dt>
<dt><a name="index-_0025define-12"></a>Directive: <strong>%define</strong> <em><var>variable</var> "<var>value</var>"</em></dt>
<dd><p>Define a variable to adjust Bison’s behavior. See <a href="_0025define-Summary.html#g_t_0025define-Summary">%define Summary</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025defines-2"></a>Directive: <strong>%defines</strong></dt>
<dd><p>Bison declaration to create a parser header file, which is usually
meant for the scanner. See <a href="Decl-Summary.html#Decl-Summary">Decl Summary</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025defines-3"></a>Directive: <strong>%defines</strong> <em><var>defines-file</var></em></dt>
<dd><p>Same as above, but save in the file <var>defines-file</var>.
See <a href="Decl-Summary.html#Decl-Summary">Decl Summary</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025destructor-5"></a>Directive: <strong>%destructor</strong></dt>
<dd><p>Specify how the parser should reclaim the memory associated to
discarded symbols. See <a href="Destructor-Decl.html#Destructor-Decl">Freeing Discarded Symbols</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025dprec-1"></a>Directive: <strong>%dprec</strong></dt>
<dd><p>Bison declaration to assign a precedence to a rule that is used at parse
time to resolve reduce/reduce conflicts. See <a href="GLR-Parsers.html#GLR-Parsers">Writing
GLR Parsers</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025empty-1"></a>Directive: <strong>%empty</strong></dt>
<dd><p>Bison declaration to declare make explicit that a rule has an empty
right-hand side. See <a href="Empty-Rules.html#Empty-Rules">Empty Rules</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0024end"></a>Symbol: <strong>$end</strong></dt>
<dd><p>The predefined token marking the end of the token stream. It cannot be
used in the grammar.
</p></dd></dl>
<dl>
<dt><a name="index-error-1"></a>Symbol: <strong>error</strong></dt>
<dd><p>A token name reserved for error recovery. This token may be used in
grammar rules so as to allow the Bison parser to recognize an error in
the grammar without halting the process. In effect, a sentence
containing an error may be recognized as valid. On a syntax error, the
token <code>error</code> becomes the current lookahead token. Actions
corresponding to <code>error</code> are then executed, and the lookahead
token is reset to the token that originally caused the violation.
See <a href="Error-Recovery.html#Error-Recovery">Error Recovery</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025error_002dverbose"></a>Directive: <strong>%error-verbose</strong></dt>
<dd><p>An obsolete directive standing for ‘<samp>%define parse.error verbose</samp>’
(see <a href="Error-Reporting.html#Error-Reporting">The Error Reporting Function <code>yyerror</code></a>).
</p></dd></dl>
<dl>
<dt><a name="index-_0025file_002dprefix-1"></a>Directive: <strong>%file-prefix</strong> <em>"<var>prefix</var>"</em></dt>
<dd><p>Bison declaration to set the prefix of the output files. See <a href="Decl-Summary.html#Decl-Summary">Decl Summary</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025glr_002dparser-2"></a>Directive: <strong>%glr-parser</strong></dt>
<dd><p>Bison declaration to produce a GLR parser. See <a href="GLR-Parsers.html#GLR-Parsers">Writing GLR Parsers</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025initial_002daction-3"></a>Directive: <strong>%initial-action</strong></dt>
<dd><p>Run user code before parsing. See <a href="Initial-Action-Decl.html#Initial-Action-Decl">Performing Actions before Parsing</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025language-1"></a>Directive: <strong>%language</strong></dt>
<dd><p>Specify the programming language for the generated parser.
See <a href="Decl-Summary.html#Decl-Summary">Decl Summary</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025left-2"></a>Directive: <strong>%left</strong></dt>
<dd><p>Bison declaration to assign precedence and left associativity to token(s).
See <a href="Precedence-Decl.html#Precedence-Decl">Operator Precedence</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025lex_002dparam-3"></a>Directive: <strong>%lex-param</strong> <em>{<var>argument-declaration</var>} …</em></dt>
<dd><p>Bison declaration to specifying additional arguments that
<code>yylex</code> should accept. See <a href="Pure-Calling.html#Pure-Calling">Calling Conventions
for Pure Parsers</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025merge-1"></a>Directive: <strong>%merge</strong></dt>
<dd><p>Bison declaration to assign a merging function to a rule. If there is a
reduce/reduce conflict with a rule having the same merging function, the
function is applied to the two semantic values to get a single result.
See <a href="GLR-Parsers.html#GLR-Parsers">Writing GLR Parsers</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025name_002dprefix-2"></a>Directive: <strong>%name-prefix</strong> <em>"<var>prefix</var>"</em></dt>
<dd><p>Obsoleted by the <code>%define</code> variable <code>api.prefix</code> (see <a href="Multiple-Parsers.html#Multiple-Parsers">Multiple Parsers in the Same Program</a>).
</p>
<p>Rename the external symbols (variables and functions) used in the parser so
that they start with <var>prefix</var> instead of ‘<samp>yy</samp>’. Contrary to
<code>api.prefix</code>, do no rename types and macros.
</p>
<p>The precise list of symbols renamed in C parsers is <code>yyparse</code>,
<code>yylex</code>, <code>yyerror</code>, <code>yynerrs</code>, <code>yylval</code>, <code>yychar</code>,
<code>yydebug</code>, and (if locations are used) <code>yylloc</code>. If you use a
push parser, <code>yypush_parse</code>, <code>yypull_parse</code>, <code>yypstate</code>,
<code>yypstate_new</code> and <code>yypstate_delete</code> will also be renamed. For
example, if you use ‘<samp>%name-prefix "c_"</samp>’, the names become
<code>c_parse</code>, <code>c_lex</code>, and so on. For C++ parsers, see the
<code>%define api.namespace</code> documentation in this section.
</p></dd></dl>
<dl>
<dt><a name="index-_0025no_002dlines-1"></a>Directive: <strong>%no-lines</strong></dt>
<dd><p>Bison declaration to avoid generating <code>#line</code> directives in the
parser implementation file. See <a href="Decl-Summary.html#Decl-Summary">Decl Summary</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025nonassoc-4"></a>Directive: <strong>%nonassoc</strong></dt>
<dd><p>Bison declaration to assign precedence and nonassociativity to token(s).
See <a href="Precedence-Decl.html#Precedence-Decl">Operator Precedence</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025output-1"></a>Directive: <strong>%output</strong> <em>"<var>file</var>"</em></dt>
<dd><p>Bison declaration to set the name of the parser implementation file.
See <a href="Decl-Summary.html#Decl-Summary">Decl Summary</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025param-2"></a>Directive: <strong>%param</strong> <em>{<var>argument-declaration</var>} …</em></dt>
<dd><p>Bison declaration to specify additional arguments that both
<code>yylex</code> and <code>yyparse</code> should accept. See <a href="Parser-Function.html#Parser-Function">The
Parser Function <code>yyparse</code></a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025parse_002dparam-3"></a>Directive: <strong>%parse-param</strong> <em>{<var>argument-declaration</var>} …</em></dt>
<dd><p>Bison declaration to specify additional arguments that <code>yyparse</code>
should accept. See <a href="Parser-Function.html#Parser-Function">The Parser Function <code>yyparse</code></a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025prec-1"></a>Directive: <strong>%prec</strong></dt>
<dd><p>Bison declaration to assign a precedence to a specific rule.
See <a href="Contextual-Precedence.html#Contextual-Precedence">Context-Dependent Precedence</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025precedence-2"></a>Directive: <strong>%precedence</strong></dt>
<dd><p>Bison declaration to assign precedence to token(s), but no associativity
See <a href="Precedence-Decl.html#Precedence-Decl">Operator Precedence</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025pure_002dparser-1"></a>Directive: <strong>%pure-parser</strong></dt>
<dd><p>Deprecated version of ‘<samp>%define api.pure</samp>’ (see <a href="_0025define-Summary.html#g_t_0025define-Summary">api.pure</a>), for which Bison is more careful to warn about
unreasonable usage.
</p></dd></dl>
<dl>
<dt><a name="index-_0025require-2"></a>Directive: <strong>%require</strong> <em>"<var>version</var>"</em></dt>
<dd><p>Require version <var>version</var> or higher of Bison. See <a href="Require-Decl.html#Require-Decl">Require a Version of Bison</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025right-2"></a>Directive: <strong>%right</strong></dt>
<dd><p>Bison declaration to assign precedence and right associativity to token(s).
See <a href="Precedence-Decl.html#Precedence-Decl">Operator Precedence</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025skeleton-1"></a>Directive: <strong>%skeleton</strong></dt>
<dd><p>Specify the skeleton to use; usually for development.
See <a href="Decl-Summary.html#Decl-Summary">Decl Summary</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025start-2"></a>Directive: <strong>%start</strong></dt>
<dd><p>Bison declaration to specify the start symbol. See <a href="Start-Decl.html#Start-Decl">The
Start-Symbol</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025token-3"></a>Directive: <strong>%token</strong></dt>
<dd><p>Bison declaration to declare token(s) without specifying precedence.
See <a href="Token-Decl.html#Token-Decl">Token Type Names</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025token_002dtable-1"></a>Directive: <strong>%token-table</strong></dt>
<dd><p>Bison declaration to include a token name table in the parser
implementation file. See <a href="Decl-Summary.html#Decl-Summary">Decl Summary</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025type-3"></a>Directive: <strong>%type</strong></dt>
<dd><p>Bison declaration to declare nonterminals. See <a href="Type-Decl.html#Type-Decl">Nonterminal Symbols</a>.
</p></dd></dl>
<dl>
<dt><a name="index-_0024undefined"></a>Symbol: <strong>$undefined</strong></dt>
<dd><p>The predefined token onto which all undefined values returned by
<code>yylex</code> are mapped. It cannot be used in the grammar, rather, use
<code>error</code>.
</p></dd></dl>
<dl>
<dt><a name="index-_0025union-3"></a>Directive: <strong>%union</strong></dt>
<dd><p>Bison declaration to specify several possible data types for semantic
values. See <a href="Union-Decl.html#Union-Decl">The Union Declaration</a>.
</p></dd></dl>
<dl>
<dt><a name="index-YYABORT-4"></a>Macro: <strong>YYABORT</strong></dt>
<dd><p>Macro to pretend that an unrecoverable syntax error has occurred, by
making <code>yyparse</code> return 1 immediately. The error reporting
function <code>yyerror</code> is not called. See <a href="Parser-Function.html#Parser-Function">The
Parser Function <code>yyparse</code></a>.
</p>
<p>For Java parsers, this functionality is invoked using <code>return YYABORT;</code>
instead.
</p></dd></dl>
<dl>
<dt><a name="index-YYACCEPT-4"></a>Macro: <strong>YYACCEPT</strong></dt>
<dd><p>Macro to pretend that a complete utterance of the language has been
read, by making <code>yyparse</code> return 0 immediately.
See <a href="Parser-Function.html#Parser-Function">The Parser Function <code>yyparse</code></a>.
</p>
<p>For Java parsers, this functionality is invoked using <code>return YYACCEPT;</code>
instead.
</p></dd></dl>
<dl>
<dt><a name="index-YYBACKUP-2"></a>Macro: <strong>YYBACKUP</strong></dt>
<dd><p>Macro to discard a value from the parser stack and fake a lookahead
token. See <a href="Action-Features.html#Action-Features">Special Features for Use in Actions</a>.
</p></dd></dl>
<dl>
<dt><a name="index-yychar-1"></a>Variable: <strong>yychar</strong></dt>
<dd><p>External integer variable that contains the integer value of the
lookahead token. (In a pure parser, it is a local variable within
<code>yyparse</code>.) Error-recovery rule actions may examine this variable.
See <a href="Action-Features.html#Action-Features">Special Features for Use in Actions</a>.
</p></dd></dl>
<dl>
<dt><a name="index-yyclearin-3"></a>Variable: <strong>yyclearin</strong></dt>
<dd><p>Macro used in error-recovery rule actions. It clears the previous
lookahead token. See <a href="Error-Recovery.html#Error-Recovery">Error Recovery</a>.
</p></dd></dl>
<dl>
<dt><a name="index-YYDEBUG-1"></a>Macro: <strong>YYDEBUG</strong></dt>
<dd><p>Macro to define to equip the parser with tracing code. See <a href="Tracing.html#Tracing">Tracing Your Parser</a>.
</p></dd></dl>
<dl>
<dt><a name="index-yydebug-1"></a>Variable: <strong>yydebug</strong></dt>
<dd><p>External integer variable set to zero by default. If <code>yydebug</code>
is given a nonzero value, the parser will output information on input
symbols and parser action. See <a href="Tracing.html#Tracing">Tracing Your Parser</a>.
</p></dd></dl>
<dl>
<dt><a name="index-yyerrok-2"></a>Macro: <strong>yyerrok</strong></dt>
<dd><p>Macro to cause parser to recover immediately to its normal mode
after a syntax error. See <a href="Error-Recovery.html#Error-Recovery">Error Recovery</a>.
</p></dd></dl>
<dl>
<dt><a name="index-YYERROR-3"></a>Macro: <strong>YYERROR</strong></dt>
<dd><p>Cause an immediate syntax error. This statement initiates error
recovery just as if the parser itself had detected an error; however, it
does not call <code>yyerror</code>, and does not print any message. If you
want to print an error message, call <code>yyerror</code> explicitly before
the ‘<samp>YYERROR;</samp>’ statement. See <a href="Error-Recovery.html#Error-Recovery">Error Recovery</a>.
</p>
<p>For Java parsers, this functionality is invoked using <code>return YYERROR;</code>
instead.
</p></dd></dl>
<dl>
<dt><a name="index-yyerror-4"></a>Function: <strong>yyerror</strong></dt>
<dd><p>User-supplied function to be called by <code>yyparse</code> on error.
See <a href="Error-Reporting.html#Error-Reporting">The Error Reporting Function <code>yyerror</code></a>.
</p></dd></dl>
<dl>
<dt><a name="index-YYERROR_005fVERBOSE"></a>Macro: <strong>YYERROR_VERBOSE</strong></dt>
<dd><p>An obsolete macro used in the <samp>yacc.c</samp> skeleton, that you define
with <code>#define</code> in the prologue to request verbose, specific error
message strings when <code>yyerror</code> is called. It doesn’t matter what
definition you use for <code>YYERROR_VERBOSE</code>, just whether you define
it. Using ‘<samp>%define parse.error verbose</samp>’ is preferred
(see <a href="Error-Reporting.html#Error-Reporting">The Error Reporting Function <code>yyerror</code></a>).
</p></dd></dl>
<dl>
<dt><a name="index-YYFPRINTF-1"></a>Macro: <strong>YYFPRINTF</strong></dt>
<dd><p>Macro used to output run-time traces.
See <a href="Enabling-Traces.html#Enabling-Traces">Enabling Traces</a>.
</p></dd></dl>
<dl>
<dt><a name="index-YYINITDEPTH"></a>Macro: <strong>YYINITDEPTH</strong></dt>
<dd><p>Macro for specifying the initial size of the parser stack.
See <a href="Memory-Management.html#Memory-Management">Memory Management</a>.
</p></dd></dl>
<dl>
<dt><a name="index-yylex-1"></a>Function: <strong>yylex</strong></dt>
<dd><p>User-supplied lexical analyzer function, called with no arguments to get
the next token. See <a href="Lexical.html#Lexical">The Lexical Analyzer Function
<code>yylex</code></a>.
</p></dd></dl>
<dl>
<dt><a name="index-yylloc-1"></a>Variable: <strong>yylloc</strong></dt>
<dd><p>External variable in which <code>yylex</code> should place the line and column
numbers associated with a token. (In a pure parser, it is a local
variable within <code>yyparse</code>, and its address is passed to
<code>yylex</code>.)
You can ignore this variable if you don’t use the ‘<samp>@</samp>’ feature in the
grammar actions.
See <a href="Token-Locations.html#Token-Locations">Textual Locations of Tokens</a>.
In semantic actions, it stores the location of the lookahead token.
See <a href="Actions-and-Locations.html#Actions-and-Locations">Actions and Locations</a>.
</p></dd></dl>
<dl>
<dt><a name="index-YYLTYPE"></a>Type: <strong>YYLTYPE</strong></dt>
<dd><p>Data type of <code>yylloc</code>; by default, a structure with four
members. See <a href="Location-Type.html#Location-Type">Data Types of Locations</a>.
</p></dd></dl>
<dl>
<dt><a name="index-yylval-1"></a>Variable: <strong>yylval</strong></dt>
<dd><p>External variable in which <code>yylex</code> should place the semantic
value associated with a token. (In a pure parser, it is a local
variable within <code>yyparse</code>, and its address is passed to
<code>yylex</code>.)
See <a href="Token-Values.html#Token-Values">Semantic Values of Tokens</a>.
In semantic actions, it stores the semantic value of the lookahead token.
See <a href="Actions.html#Actions">Actions</a>.
</p></dd></dl>
<dl>
<dt><a name="index-YYMAXDEPTH"></a>Macro: <strong>YYMAXDEPTH</strong></dt>
<dd><p>Macro for specifying the maximum size of the parser stack. See <a href="Memory-Management.html#Memory-Management">Memory Management</a>.
</p></dd></dl>
<dl>
<dt><a name="index-yynerrs"></a>Variable: <strong>yynerrs</strong></dt>
<dd><p>Global variable which Bison increments each time it reports a syntax error.
(In a pure parser, it is a local variable within <code>yyparse</code>. In a
pure push parser, it is a member of <code>yypstate</code>.)
See <a href="Error-Reporting.html#Error-Reporting">The Error Reporting Function <code>yyerror</code></a>.
</p></dd></dl>
<dl>
<dt><a name="index-yyparse-2"></a>Function: <strong>yyparse</strong></dt>
<dd><p>The parser function produced by Bison; call this function to start
parsing. See <a href="Parser-Function.html#Parser-Function">The Parser Function <code>yyparse</code></a>.
</p></dd></dl>
<dl>
<dt><a name="index-YYPRINT-3"></a>Macro: <strong>YYPRINT</strong></dt>
<dd><p>Macro used to output token semantic values. For <samp>yacc.c</samp> only.
Obsoleted by <code>%printer</code>.
See <a href="The-YYPRINT-Macro.html#The-YYPRINT-Macro">The <code>YYPRINT</code> Macro</a>.
</p></dd></dl>
<dl>
<dt><a name="index-yypstate_005fdelete-2"></a>Function: <strong>yypstate_delete</strong></dt>
<dd><p>The function to delete a parser instance, produced by Bison in push mode;
call this function to delete the memory associated with a parser.
See <a href="Parser-Delete-Function.html#Parser-Delete-Function">The Parser Delete Function
<code>yypstate_delete</code></a>.
(The current push parsing interface is experimental and may evolve.
More user feedback will help to stabilize it.)
</p></dd></dl>
<dl>
<dt><a name="index-yypstate_005fnew-2"></a>Function: <strong>yypstate_new</strong></dt>
<dd><p>The function to create a parser instance, produced by Bison in push mode;
call this function to create a new parser.
See <a href="Parser-Create-Function.html#Parser-Create-Function">The Parser Create Function
<code>yypstate_new</code></a>.
(The current push parsing interface is experimental and may evolve.
More user feedback will help to stabilize it.)
</p></dd></dl>
<dl>
<dt><a name="index-yypull_005fparse-2"></a>Function: <strong>yypull_parse</strong></dt>
<dd><p>The parser function produced by Bison in push mode; call this function to
parse the rest of the input stream.
See <a href="Pull-Parser-Function.html#Pull-Parser-Function">The Pull Parser Function
<code>yypull_parse</code></a>.
(The current push parsing interface is experimental and may evolve.
More user feedback will help to stabilize it.)
</p></dd></dl>
<dl>
<dt><a name="index-yypush_005fparse-2"></a>Function: <strong>yypush_parse</strong></dt>
<dd><p>The parser function produced by Bison in push mode; call this function to
parse a single token. See <a href="Push-Parser-Function.html#Push-Parser-Function">The Push Parser Function
<code>yypush_parse</code></a>.
(The current push parsing interface is experimental and may evolve.
More user feedback will help to stabilize it.)
</p></dd></dl>
<dl>
<dt><a name="index-YYRECOVERING-2"></a>Macro: <strong>YYRECOVERING</strong></dt>
<dd><p>The expression <code>YYRECOVERING ()</code> yields 1 when the parser
is recovering from a syntax error, and 0 otherwise.
See <a href="Action-Features.html#Action-Features">Special Features for Use in Actions</a>.
</p></dd></dl>
<dl>
<dt><a name="index-YYSTACK_005fUSE_005fALLOCA"></a>Macro: <strong>YYSTACK_USE_ALLOCA</strong></dt>
<dd><p>Macro used to control the use of <code>alloca</code> when the
deterministic parser in C needs to extend its stacks. If defined to 0,
the parser will use <code>malloc</code> to extend its stacks. If defined to
1, the parser will use <code>alloca</code>. Values other than 0 and 1 are
reserved for future Bison extensions. If not defined,
<code>YYSTACK_USE_ALLOCA</code> defaults to 0.
</p>
<p>In the all-too-common case where your code may run on a host with a
limited stack and with unreliable stack-overflow checking, you should
set <code>YYMAXDEPTH</code> to a value that cannot possibly result in
unchecked stack overflow on any of your target hosts when
<code>alloca</code> is called. You can inspect the code that Bison
generates in order to determine the proper numeric values. This will
require some expertise in low-level implementation details.
</p></dd></dl>
<dl>
<dt><a name="index-YYSTYPE"></a>Type: <strong>YYSTYPE</strong></dt>
<dd><p>Deprecated in favor of the <code>%define</code> variable <code>api.value.type</code>.
Data type of semantic values; <code>int</code> by default.
See <a href="Value-Type.html#Value-Type">Data Types of Semantic Values</a>.
</p></dd></dl>
<hr>
<div class="header">
<p>
Next: <a href="Glossary.html#Glossary" accesskey="n" rel="next">Glossary</a>, Previous: <a href="FAQ.html#FAQ" accesskey="p" rel="prev">FAQ</a>, Up: <a href="index.html#Top" accesskey="u" rel="up">Top</a> [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Index-of-Terms.html#Index-of-Terms" title="Index" rel="index">Index</a>]</p>
</div>
</body>
</html>
|