Debian Codegraph @

src/fcml_intel_parser_def.h

raw
1 /* A Bison parser, made by GNU Bison 3.8.2. */
2
3 /* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
6 Inc.
7
8 This program is free software: you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation, either version 3 of the License, or
11 (at your option) any later version.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <https://www.gnu.org/licenses/>. */
20
21 /* As a special exception, you may create a larger work that contains
22 part or all of the Bison parser skeleton and distribute that work
23 under terms of your choice, so long as that work isn't itself a
24 parser generator using the skeleton or a modified version thereof
25 as a parser skeleton. Alternatively, if you modify or redistribute
26 the parser skeleton itself, you may (at your option) remove this
27 special exception, which will cause the skeleton and the resulting
28 Bison output files to be licensed under the GNU General Public
29 License without this special exception.
30
31 This special exception was added by the Free Software Foundation in
32 version 2.2 of Bison. */
33
34 /* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
35 especially those whose name start with YY_ or yy_. They are
36 private implementation details that can be changed or removed. */
37
38 #ifndef YY_INTEL_FCML_INTEL_PARSER_DEF_H_INCLUDED
39 # define YY_INTEL_FCML_INTEL_PARSER_DEF_H_INCLUDED
40 /* Debug traces. */
41 #ifndef INTEL_DEBUG
42 # if defined YYDEBUG
43 #if YYDEBUG
44 # define INTEL_DEBUG 1
45 # else
46 # define INTEL_DEBUG 0
47 # endif
48 # else /* ! defined YYDEBUG */
49 # define INTEL_DEBUG 0
50 # endif /* ! defined YYDEBUG */
51 #endif /* ! defined INTEL_DEBUG */
52 #if INTEL_DEBUG
53 extern int intel_debug;
54 #endif
55
56 /* Token kinds. */
57 #ifndef INTEL_TOKENTYPE
58 # define INTEL_TOKENTYPE
59 enum intel_tokentype
60 {
61 INTEL_EMPTY = -2,
62 INTEL_EOF = 0, /* "end of file" */
63 INTEL_error = 256, /* error */
64 INTEL_UNDEF = 257, /* "invalid token" */
65 FCML_TK_UNEXPECTED = 258, /* FCML_TK_UNEXPECTED */
66 FCML_TK_REG_GPR = 259, /* FCML_TK_REG_GPR */
67 FCML_TK_REG_SIMD = 260, /* FCML_TK_REG_SIMD */
68 FCML_TK_REG_FPU = 261, /* FCML_TK_REG_FPU */
69 FCML_TK_REG_SEG = 262, /* FCML_TK_REG_SEG */
70 FCML_TK_REG_OPMASK = 263, /* FCML_TK_REG_OPMASK */
71 FCML_TK_REG_CR = 264, /* FCML_TK_REG_CR */
72 FCML_TK_REG_DR = 265, /* FCML_TK_REG_DR */
73 FCML_TK_REG_RIP = 266, /* FCML_TK_REG_RIP */
74 FCML_TK_DECORATOR_BCAST = 267, /* FCML_TK_DECORATOR_BCAST */
75 FCML_TK_DECORATOR_ER = 268, /* FCML_TK_DECORATOR_ER */
76 FCML_TK_DECORATOR_Z = 269, /* FCML_TK_DECORATOR_Z */
77 FCML_TK_DECORATOR_SAE = 270, /* FCML_TK_DECORATOR_SAE */
78 FCML_TK_OPMASK_REG_DECORATOR = 271, /* FCML_TK_OPMASK_REG_DECORATOR */
79 FCML_TK_INTEGER = 272, /* FCML_TK_INTEGER */
80 FCML_TK_FLOAT = 273, /* FCML_TK_FLOAT */
81 FCML_TK_SIZE_OPERATOR = 274, /* FCML_TK_SIZE_OPERATOR */
82 FCML_TK_SYMBOL = 275, /* FCML_TK_SYMBOL */
83 FCML_TK_HINTS = 276, /* FCML_TK_HINTS */
84 FCML_TK_EAO_HINTS = 277, /* FCML_TK_EAO_HINTS */
85 FCML_TK_SIB_HINT = 278, /* FCML_TK_SIB_HINT */
86 FCML_TK_PREFIX = 279, /* FCML_TK_PREFIX */
87 FCML_OP_UMINUS = 280 /* FCML_OP_UMINUS */
88 };
89 typedef enum intel_tokentype intel_token_kind_t;
90 #endif
91 /* Token kinds. */
92 #define INTEL_EMPTY -2
93 #define INTEL_EOF 0
94 #define INTEL_error 256
95 #define INTEL_UNDEF 257
96 #define FCML_TK_UNEXPECTED 258
97 #define FCML_TK_REG_GPR 259
98 #define FCML_TK_REG_SIMD 260
99 #define FCML_TK_REG_FPU 261
100 #define FCML_TK_REG_SEG 262
101 #define FCML_TK_REG_OPMASK 263
102 #define FCML_TK_REG_CR 264
103 #define FCML_TK_REG_DR 265
104 #define FCML_TK_REG_RIP 266
105 #define FCML_TK_DECORATOR_BCAST 267
106 #define FCML_TK_DECORATOR_ER 268
107 #define FCML_TK_DECORATOR_Z 269
108 #define FCML_TK_DECORATOR_SAE 270
109 #define FCML_TK_OPMASK_REG_DECORATOR 271
110 #define FCML_TK_INTEGER 272
111 #define FCML_TK_FLOAT 273
112 #define FCML_TK_SIZE_OPERATOR 274
113 #define FCML_TK_SYMBOL 275
114 #define FCML_TK_HINTS 276
115 #define FCML_TK_EAO_HINTS 277
116 #define FCML_TK_SIB_HINT 278
117 #define FCML_TK_PREFIX 279
118 #define FCML_OP_UMINUS 280
119
120 /* Value type. */
121 #if ! defined INTEL_STYPE && ! defined INTEL_STYPE_IS_DECLARED
122 union INTEL_STYPE
123 {
124 #line 125 "fcml_intel_parser_def.y"
125
126 /*Complex values.*/
127 fcml_st_ast_val_integer integer_value;
128 fcml_st_ast_val_float float_value;
129 fcml_st_register reg_value;
130 fcml_st_ast_node *ast;
131 struct {
132 fcml_string text;
133 int length;
134 } symbol;
135 fcml_st_size_operator size_operator;
136 fcml_hints hints;
137 fcml_prefixes prefixes;
138 fcml_bool bool_value;
139 fcml_int int_value;
140
141 #line 142 "fcml_intel_parser_def.h"
142
143 };
144 typedef union INTEL_STYPE INTEL_STYPE;
145 # define INTEL_STYPE_IS_TRIVIAL 1
146 # define INTEL_STYPE_IS_DECLARED 1
147 #endif
148
149 /* Location type. */
150 #if ! defined INTEL_LTYPE && ! defined INTEL_LTYPE_IS_DECLARED
151 typedef struct INTEL_LTYPE INTEL_LTYPE;
152 struct INTEL_LTYPE
153 {
154 int first_line;
155 int first_column;
156 int last_line;
157 int last_column;
158 };
159 # define INTEL_LTYPE_IS_DECLARED 1
160 # define INTEL_LTYPE_IS_TRIVIAL 1
161 #endif
162
163
164
165
166 int intel_parse (struct fcml_st_parser_data *pd);
167
168 /* "%code provides" blocks. */
169 #line 27 "fcml_intel_parser_def.y"
170
171 #define YYSTYPE INTEL_STYPE
172 #define YYLTYPE INTEL_LTYPE
173
174 #line 175 "fcml_intel_parser_def.h"
175
176 #endif /* !YY_INTEL_FCML_INTEL_PARSER_DEF_H_INCLUDED */