Debian Codegraph @

formats/ctf/metadata/ctf-parser.h

raw
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_CTF_PARSER_H_INCLUDED
34 # define YY_YY_CTF_PARSER_H_INCLUDED
35 /* Debug traces. */
36 #ifndef YYDEBUG
37 # define YYDEBUG 1
38 #endif
39 #if YYDEBUG
40 extern int yydebug;
41 #endif
42
43 /* Token type. */
44 #ifndef YYTOKENTYPE
45 # define YYTOKENTYPE
46 enum yytokentype
47 {
48 INTEGER_LITERAL = 258,
49 STRING_LITERAL = 259,
50 CHARACTER_LITERAL = 260,
51 LSBRAC = 261,
52 RSBRAC = 262,
53 LPAREN = 263,
54 RPAREN = 264,
55 LBRAC = 265,
56 RBRAC = 266,
57 RARROW = 267,
58 STAR = 268,
59 PLUS = 269,
60 MINUS = 270,
61 LT = 271,
62 GT = 272,
63 TYPEASSIGN = 273,
64 COLON = 274,
65 SEMICOLON = 275,
66 DOTDOTDOT = 276,
67 DOT = 277,
68 EQUAL = 278,
69 COMMA = 279,
70 CONST = 280,
71 CHAR = 281,
72 DOUBLE = 282,
73 ENUM = 283,
74 ENV = 284,
75 EVENT = 285,
76 FLOATING_POINT = 286,
77 FLOAT = 287,
78 INTEGER = 288,
79 INT = 289,
80 LONG = 290,
81 SHORT = 291,
82 SIGNED = 292,
83 STREAM = 293,
84 STRING = 294,
85 STRUCT = 295,
86 TRACE = 296,
87 CALLSITE = 297,
88 CLOCK = 298,
89 TYPEALIAS = 299,
90 TYPEDEF = 300,
91 UNSIGNED = 301,
92 VARIANT = 302,
93 VOID = 303,
94 _BOOL = 304,
95 _COMPLEX = 305,
96 _IMAGINARY = 306,
97 TOK_ALIGN = 307,
98 IDENTIFIER = 308,
99 ID_TYPE = 309,
100 ERROR = 310
101 };
102 #endif
103 /* Tokens. */
104 #define INTEGER_LITERAL 258
105 #define STRING_LITERAL 259
106 #define CHARACTER_LITERAL 260
107 #define LSBRAC 261
108 #define RSBRAC 262
109 #define LPAREN 263
110 #define RPAREN 264
111 #define LBRAC 265
112 #define RBRAC 266
113 #define RARROW 267
114 #define STAR 268
115 #define PLUS 269
116 #define MINUS 270
117 #define LT 271
118 #define GT 272
119 #define TYPEASSIGN 273
120 #define COLON 274
121 #define SEMICOLON 275
122 #define DOTDOTDOT 276
123 #define DOT 277
124 #define EQUAL 278
125 #define COMMA 279
126 #define CONST 280
127 #define CHAR 281
128 #define DOUBLE 282
129 #define ENUM 283
130 #define ENV 284
131 #define EVENT 285
132 #define FLOATING_POINT 286
133 #define FLOAT 287
134 #define INTEGER 288
135 #define INT 289
136 #define LONG 290
137 #define SHORT 291
138 #define SIGNED 292
139 #define STREAM 293
140 #define STRING 294
141 #define STRUCT 295
142 #define TRACE 296
143 #define CALLSITE 297
144 #define CLOCK 298
145 #define TYPEALIAS 299
146 #define TYPEDEF 300
147 #define UNSIGNED 301
148 #define VARIANT 302
149 #define VOID 303
150 #define _BOOL 304
151 #define _COMPLEX 305
152 #define _IMAGINARY 306
153 #define TOK_ALIGN 307
154 #define IDENTIFIER 308
155 #define ID_TYPE 309
156 #define ERROR 310
157
158 /* Value type. */
159 #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
160
161 union YYSTYPE
162 {
163 #line 1060 "ctf-parser.y" /* yacc.c:1909 */
164
165 long long ll;
166 unsigned long long ull;
167 char c;
168 char *s;
169 struct ctf_node *n;
170
171 #line 172 "ctf-parser.h" /* yacc.c:1909 */
172 };
173
174 typedef union YYSTYPE YYSTYPE;
175 # define YYSTYPE_IS_TRIVIAL 1
176 # define YYSTYPE_IS_DECLARED 1
177 #endif
178
179
180
181 int yyparse (struct ctf_scanner *scanner, yyscan_t yyscanner);
182
183 #endif /* !YY_YY_CTF_PARSER_H_INCLUDED */