Lines Matching full:declarations
62 * Grammar File:: Writing Bison declarations and rules.
116 * Decls: Rpcalc Decls. Prologue (declarations) for rpcalc.
132 * Decls: Ltcalc Decls. Bison and C declarations for ltcalc.
138 * Decl: Mfcalc Decl. Bison declarations for multi-function calculator.
150 * Declarations:: All kinds of Bison declarations are described here.
156 * Bison Declarations:: Syntax and usage of the Bison declarations section.
176 Bison Declarations
188 * Decl Summary:: Table of all Bison declarations.
783 declarations, Bison is also able to parse these more general
842 declarations' plays this role.
853 the entire input must be a `sequence of definitions and declarations'.
988 `%glr-parser' among the Bison declarations in your file (*note Grammar
991 applying precedence declarations) identically to LALR(1) parsers.
1055 (These declarations are contrived, but they are syntactically valid,
1058 These two declarations look identical until the `..' token. With
1073 identifiers. But if these declarations occur in a local scope, and `a'
1108 parses a vastly simplified form of Pascal type declarations.
1145 these two declarations to the Bison input file (before the first `%%'):
1151 all valid declarations, according to the limited syntax above,
1227 certain declarations and statements. For example,
1247 above, the two `%dprec' declarations specify that Bison is to give
1253 The `%dprec' declarations only come into play when more than one
1289 with an accompanying forward declaration in the C declarations at the
1297 With these declarations, the resulting parser parses the first example
1504 BISON DECLARATIONS
1521 The Bison declarations declare the names of the terminal and
1577 * Decls: Rpcalc Decls. Prologue (declarations) for rpcalc.
1588 2.1.1 Declarations for `rpcalc'
1591 Here are the C and Bison declarations for the reverse polish notation
1607 The declarations section (*note The prologue: Prologue.) contains two
1608 preprocessor directives and two forward declarations.
1620 The forward declarations for `yylex' and `yyerror' are needed
1625 The second section, Bison declarations, provides information to Bison
1626 about the token types (*note The Bison Declarations Section: Bison
1627 Declarations.). Each terminal symbol that is not a single-character
1832 the beginning of the grammar; *note Declarations for `rpcalc': Rpcalc
1999 /* Bison declarations. */
2030 In the second section (Bison declarations), `%left' declares token
2031 types and says they are left-associative operators. The declarations
2039 declarations; the higher the line number of the declaration (lower on
2113 * Decls: Ltcalc Decls. Bison and C declarations for ltcalc.
2120 2.4.1 Declarations for `ltcalc'
2123 The C and Bison declarations for the location tracking calculator are
2124 the same as the declarations for the infix notation calculator.
2135 /* Bison declarations. */
2145 Note there are no declarations specific to locations. Defining a data
2326 * Decl: Mfcalc Decl. Bison declarations for multi-function calculator.
2333 2.5.1 Declarations for `mfcalc'
2336 Here are the C and Bison declarations for the multi-function calculator.
2370 These symbols are `NUM', `VAR', `FNCT', and `exp'. Their declarations
2424 the grammar rules (except for the actions) or the Bison declarations,
2660 * Declarations:: All kinds of Bison declarations are described here.
2676 BISON DECLARATIONS
2691 * Bison Declarations:: Syntax and usage of the Bison declarations section.
2696 File: bison.info, Node: Prologue, Next: Bison Declarations, Up: Grammar Outline
2701 The PROLOGUE section contains macro definitions and declarations of
2705 get the declarations from a header file. If you don't need any C
2706 declarations, you may omit the `%{' and `%}' delimiters that bracket
2714 BISON DECLARATIONS. This allows you to have C and Bison declarations
2738 File: bison.info, Node: Bison Declarations, Next: Grammar Rules, Prev: Prologue, Up: Grammar Outline
2740 3.1.2 The Bison Declarations Section
2743 The BISON DECLARATIONS section contains declarations that define
2745 some simple grammars you may not need any declarations. *Note Bison
2746 Declarations: Declarations.
2749 File: bison.info, Node: Grammar Rules, Next: Epilogue, Prev: Bison Declarations, Up: Grammar Outline
2846 Declarations: Token Decl.). If you don't do that, the lexical
3319 compound: '{' declarations statements '}'
3327 '{' declarations statements '}'
3342 '{' declarations statements '}'
3356 declarations statements '}'
3371 '{' declarations statements '}'
3380 File: bison.info, Node: Locations, Next: Declarations, Prev: Semantics, Up: Grammar File
3553 File: bison.info, Node: Declarations, Next: Multiple Parsers, Prev: Locations, Up: Grammar File
3555 3.7 Bison Declarations
3558 The "Bison declarations" section of a Bison grammar defines the symbols
3584 * Decl Summary:: Table of all Bison declarations.
3587 File: bison.info, Node: Require Decl, Next: Token Decl, Up: Declarations
3599 File: bison.info, Node: Token Decl, Next: Precedence Decl, Prev: Require Decl, Up: Declarations
3655 interchangeably in further declarations or the grammar rules. The
3660 File: bison.info, Node: Precedence Decl, Next: Union Decl, Prev: Token Decl, Up: Declarations
3667 called "precedence declarations". *Note Operator Precedence:
3679 And indeed any of these declarations serves the purposes of `%token'.
3695 precedence declarations associate, the one declared later has the
3699 File: bison.info, Node: Union Decl, Next: Type Decl, Prev: Precedence Decl, Up: Declarations
3717 `%token' and `%type' declarations to pick one of the types for a
3732 declarations; their contents are concatenated. However, only the first
3739 File: bison.info, Node: Type Decl, Next: Initial Action Decl, Prev: Union Decl, Up: Declarations
3758 terminal symbol. All kinds of token declarations allow `<TYPE>'.
3761 File: bison.info, Node: Initial Action Decl, Next: Destructor Decl, Prev: Type Decl, Up: Declarations
3785 File: bison.info, Node: Destructor Decl, Next: Expect Decl, Prev: Initial Action Decl, Up: Declarations
3846 File: bison.info, Node: Expect Decl, Next: Start Decl, Prev: Destructor Decl, Up: Declarations
3895 File: bison.info, Node: Start Decl, Next: Pure Decl, Prev: Expect Decl, Up: Declarations
3908 File: bison.info, Node: Pure Decl, Next: Decl Summary, Prev: Start Decl, Up: Declarations
3945 File: bison.info, Node: Decl Summary, Prev: Pure Decl, Up: Declarations
3950 Here is a summary of the declarations used to define a grammar:
3996 names defined in the grammar as well as a few other declarations.
4019 declarations and to the token type codes. *Note Semantic Values
4051 static variable declarations.
4120 File: bison.info, Node: Multiple Parsers, Prev: Declarations, Up: Grammar File
4472 declarations section (*note The Bison Declarations Section: Bison
4473 Declarations.), then Bison provides a more verbose and specific error
4854 operator precedence declarations. To see the reason for this, let's
4915 Bison declarations for operator precedence allow you to specify when to
4973 declarations `%left' and `%right'. Each such declaration contains a
4992 In our example, we would want the following declarations:
5016 The first effect of the precedence declarations is to assign precedence
5047 The Bison precedence declarations, `%left', `%right' and
5598 identifier is _not_ significant, such as in declarations that can
6189 calculator (*note Declarations for `mfcalc': Mfcalc Decl.):
6339 in the grammar, as well as a few other declarations. *Note Decl
6823 Then come the declarations/inclusions needed to define the `%union'.
7444 declarations section or the epilogue. *Note The Overall Layout of
8478 * Bison declarations: Declarations. (line 6)
8479 * Bison declarations (introduction): Bison Declarations. (line 6)
8532 * declarations: Prologue. (line 6)
8533 * declarations section: Prologue. (line 6)
8534 * declarations, Bison: Declarations. (line 6)
8535 * declarations, Bison (introduction): Bison Declarations. (line 6)
8700 * precedence declarations: Precedence Decl. (line 6)
8911 Node: Bison Declarations112427
8927 Node: Declarations146828