source: tools/prettyprinter/parser.hh @ bd0b6b62

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprnew-envno_listpersistent-indexerpthread-emulationqualifiedEnumresolv-newwith_gc
Last change on this file since bd0b6b62 was fc1ef62, checked in by Peter A. Buhr <pabuhr@…>, 7 years ago

add %precedence operator precedence

  • Property mode set to 100644
File size: 3.6 KB
Line 
1/* A Bison parser, made by GNU Bison 3.0.4.  */
2
3/* Bison interface for Yacc-like parsers in C
4
5   Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
6
7   This program is free software: you can redistribute it and/or modify
8   it under the terms of the GNU General Public License as published by
9   the Free Software Foundation, either version 3 of the License, or
10   (at your option) any later version.
11
12   This program is distributed in the hope that it will be useful,
13   but WITHOUT ANY WARRANTY; without even the implied warranty of
14   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15   GNU General Public License for more details.
16
17   You should have received a copy of the GNU General Public License
18   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
19
20/* As a special exception, you may create a larger work that contains
21   part or all of the Bison parser skeleton and distribute that work
22   under terms of your choice, so long as that work isn't itself a
23   parser generator using the skeleton or a modified version thereof
24   as a parser skeleton.  Alternatively, if you modify or redistribute
25   the parser skeleton itself, you may (at your option) remove this
26   special exception, which will cause the skeleton and the resulting
27   Bison output files to be licensed under the GNU General Public
28   License without this special exception.
29
30   This special exception was added by the Free Software Foundation in
31   version 2.2 of Bison.  */
32
33#ifndef YY_YY_PARSER_HH_INCLUDED
34# define YY_YY_PARSER_HH_INCLUDED
35/* Debug traces.  */
36#ifndef YYDEBUG
37# define YYDEBUG 1
38#endif
39#if YYDEBUG
40extern int yydebug;
41#endif
42
43/* Token type.  */
44#ifndef YYTOKENTYPE
45# define YYTOKENTYPE
46  enum yytokentype
47  {
48    MARK = 258,
49    LCURL = 259,
50    RCURL = 260,
51    INTEGER = 261,
52    CHARACTER = 262,
53    IDENTIFIER = 263,
54    CODE = 264,
55    START = 265,
56    UNION = 266,
57    TOKEN = 267,
58    LEFT = 268,
59    RIGHT = 269,
60    NONASSOC = 270,
61    PRECEDENCE = 271,
62    TYPE = 272,
63    PURE_PARSER = 273,
64    SEMANTIC_PARSER = 274,
65    EXPECT = 275,
66    THONG = 276,
67    PREC = 277,
68    END_TERMINALS = 278,
69    _SECTIONS = 279,
70    _DEFSECTION_OPT = 280,
71    _LITERALBLOCK = 281,
72    _DECLARATION = 282,
73    _TAG_OPT = 283,
74    _NAMENOLIST = 284,
75    _NAMENO = 285,
76    _NAMELIST = 286,
77    _RULESECTION = 287,
78    _RULE = 288,
79    _LHS = 289,
80    _RHS = 290,
81    _PREC = 291,
82    _ACTION = 292,
83    _USERSECTION_OPT = 293
84  };
85#endif
86/* Tokens.  */
87#define MARK 258
88#define LCURL 259
89#define RCURL 260
90#define INTEGER 261
91#define CHARACTER 262
92#define IDENTIFIER 263
93#define CODE 264
94#define START 265
95#define UNION 266
96#define TOKEN 267
97#define LEFT 268
98#define RIGHT 269
99#define NONASSOC 270
100#define PRECEDENCE 271
101#define TYPE 272
102#define PURE_PARSER 273
103#define SEMANTIC_PARSER 274
104#define EXPECT 275
105#define THONG 276
106#define PREC 277
107#define END_TERMINALS 278
108#define _SECTIONS 279
109#define _DEFSECTION_OPT 280
110#define _LITERALBLOCK 281
111#define _DECLARATION 282
112#define _TAG_OPT 283
113#define _NAMENOLIST 284
114#define _NAMENO 285
115#define _NAMELIST 286
116#define _RULESECTION 287
117#define _RULE 288
118#define _LHS 289
119#define _RHS 290
120#define _PREC 291
121#define _ACTION 292
122#define _USERSECTION_OPT 293
123
124/* Value type.  */
125#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
126
127union YYSTYPE
128{
129#line 41 "parser.yy" /* yacc.c:1909  */
130
131        Token *tokenp;
132
133#line 134 "parser.hh" /* yacc.c:1909  */
134};
135
136typedef union YYSTYPE YYSTYPE;
137# define YYSTYPE_IS_TRIVIAL 1
138# define YYSTYPE_IS_DECLARED 1
139#endif
140
141
142extern YYSTYPE yylval;
143
144int yyparse (void);
145
146#endif /* !YY_YY_PARSER_HH_INCLUDED  */
Note: See TracBrowser for help on using the repository browser.