Debian Codegraph @

src/fcml_gas_parser_def.h

raw
1 /* A Bison parser, made by GNU Bison 3.5.1. */
2
3 /* Bison interface for Yacc-like parsers in C
4
5 Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 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 <http://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 /* Undocumented macros, especially those whose name start with YY_,
35 are private implementation details. Do not rely on them. */
36
37 #ifndef YY_GAS_FCML_GAS_PARSER_DEF_H_INCLUDED
38 # define YY_GAS_FCML_GAS_PARSER_DEF_H_INCLUDED
39 /* Debug traces. */
40 #ifndef GAS_DEBUG
41 # if defined YYDEBUG
42 #if YYDEBUG
43 # define GAS_DEBUG 1
44 # else
45 # define GAS_DEBUG 0
46 # endif
47 # else /* ! defined YYDEBUG */
48 # define GAS_DEBUG 0
49 # endif /* ! defined YYDEBUG */
50 #endif /* ! defined GAS_DEBUG */
51 #if GAS_DEBUG
52 extern int gas_debug;
53 #endif
54
55 /* Token type. */
56 #ifndef GAS_TOKENTYPE
57 # define GAS_TOKENTYPE
58 enum gas_tokentype
59 {
60 FCML_TK_UNEXPECTED = 258,
61 FCML_TK_REG_GPR = 259,
62 FCML_TK_REG_SIMD = 260,
63 FCML_TK_REG_FPU = 261,
64 FCML_TK_REG_SEG = 262,
65 FCML_TK_REG_OPMASK = 263,
66 FCML_TK_REG_CR = 264,
67 FCML_TK_REG_DR = 265,
68 FCML_TK_REG_RIP = 266,
69 FCML_TK_DECORATOR_BCAST = 267,
70 FCML_TK_DECORATOR_ER = 268,
71 FCML_TK_DECORATOR_Z = 269,
72 FCML_TK_DECORATOR_SAE = 270,
73 FCML_TK_OPMASK_REG_DECORATOR = 271,
74 FCML_TK_INTEGER = 272,
75 FCML_TK_SYMBOL = 273,
76 FCML_TK_PREFIX = 274,
77 FCML_TK_PO_BYTE = 275,
78 FCML_OP_UMINUS = 276
79 };
80 #endif
81 /* Tokens. */
82 #define FCML_TK_UNEXPECTED 258
83 #define FCML_TK_REG_GPR 259
84 #define FCML_TK_REG_SIMD 260
85 #define FCML_TK_REG_FPU 261
86 #define FCML_TK_REG_SEG 262
87 #define FCML_TK_REG_OPMASK 263
88 #define FCML_TK_REG_CR 264
89 #define FCML_TK_REG_DR 265
90 #define FCML_TK_REG_RIP 266
91 #define FCML_TK_DECORATOR_BCAST 267
92 #define FCML_TK_DECORATOR_ER 268
93 #define FCML_TK_DECORATOR_Z 269
94 #define FCML_TK_DECORATOR_SAE 270
95 #define FCML_TK_OPMASK_REG_DECORATOR 271
96 #define FCML_TK_INTEGER 272
97 #define FCML_TK_SYMBOL 273
98 #define FCML_TK_PREFIX 274
99 #define FCML_TK_PO_BYTE 275
100 #define FCML_OP_UMINUS 276
101
102 /* Value type. */
103 #if ! defined GAS_STYPE && ! defined GAS_STYPE_IS_DECLARED
104 union GAS_STYPE
105 {
106 #line 117 "fcml_gas_parser_def.y"
107
108 /*Complex values.*/
109 fcml_st_ast_val_integer integer_value;
110 fcml_st_register reg_value;
111 fcml_st_ast_node *ast;
112 struct {
113 fcml_string text;
114 int length;
115 } symbol;
116 fcml_hints hints;
117 fcml_prefixes prefixes;
118 fcml_bool bool_value;
119 fcml_int int_value;
120
121 #line 122 "fcml_gas_parser_def.h"
122
123 };
124 typedef union GAS_STYPE GAS_STYPE;
125 # define GAS_STYPE_IS_TRIVIAL 1
126 # define GAS_STYPE_IS_DECLARED 1
127 #endif
128
129 /* Location type. */
130 #if ! defined GAS_LTYPE && ! defined GAS_LTYPE_IS_DECLARED
131 typedef struct GAS_LTYPE GAS_LTYPE;
132 struct GAS_LTYPE
133 {
134 int first_line;
135 int first_column;
136 int last_line;
137 int last_column;
138 };
139 # define GAS_LTYPE_IS_DECLARED 1
140 # define GAS_LTYPE_IS_TRIVIAL 1
141 #endif
142
143
144
145 int gas_parse (struct fcml_st_parser_data *pd);
146 /* "%code provides" blocks. */
147 #line 27 "fcml_gas_parser_def.y"
148
149 #define YYSTYPE GAS_STYPE
150 #define YYLTYPE GAS_LTYPE
151
152 #line 153 "fcml_gas_parser_def.h"
153
154 #endif /* !YY_GAS_FCML_GAS_PARSER_DEF_H_INCLUDED */