/* A Bison parser, made by GNU Bison 3.5.1. */ /* Bison interface for Yacc-like parsers in C Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2020 Free Software Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . */ /* As a special exception, you may create a larger work that contains part or all of the Bison parser skeleton and distribute that work under terms of your choice, so long as that work isn't itself a parser generator using the skeleton or a modified version thereof as a parser skeleton. Alternatively, if you modify or redistribute the parser skeleton itself, you may (at your option) remove this special exception, which will cause the skeleton and the resulting Bison output files to be licensed under the GNU General Public License without this special exception. This special exception was added by the Free Software Foundation in version 2.2 of Bison. */ /* Undocumented macros, especially those whose name start with YY_, are private implementation details. Do not rely on them. */ #ifndef YY_GAS_FCML_GAS_PARSER_DEF_H_INCLUDED # define YY_GAS_FCML_GAS_PARSER_DEF_H_INCLUDED /* Debug traces. */ #ifndef GAS_DEBUG # if defined YYDEBUG #if YYDEBUG # define GAS_DEBUG 1 # else # define GAS_DEBUG 0 # endif # else /* ! defined YYDEBUG */ # define GAS_DEBUG 0 # endif /* ! defined YYDEBUG */ #endif /* ! defined GAS_DEBUG */ #if GAS_DEBUG extern int gas_debug; #endif /* Token type. */ #ifndef GAS_TOKENTYPE # define GAS_TOKENTYPE enum gas_tokentype { FCML_TK_UNEXPECTED = 258, FCML_TK_REG_GPR = 259, FCML_TK_REG_SIMD = 260, FCML_TK_REG_FPU = 261, FCML_TK_REG_SEG = 262, FCML_TK_REG_OPMASK = 263, FCML_TK_REG_CR = 264, FCML_TK_REG_DR = 265, FCML_TK_REG_RIP = 266, FCML_TK_DECORATOR_BCAST = 267, FCML_TK_DECORATOR_ER = 268, FCML_TK_DECORATOR_Z = 269, FCML_TK_DECORATOR_SAE = 270, FCML_TK_OPMASK_REG_DECORATOR = 271, FCML_TK_INTEGER = 272, FCML_TK_SYMBOL = 273, FCML_TK_PREFIX = 274, FCML_TK_PO_BYTE = 275, FCML_OP_UMINUS = 276 }; #endif /* Tokens. */ #define FCML_TK_UNEXPECTED 258 #define FCML_TK_REG_GPR 259 #define FCML_TK_REG_SIMD 260 #define FCML_TK_REG_FPU 261 #define FCML_TK_REG_SEG 262 #define FCML_TK_REG_OPMASK 263 #define FCML_TK_REG_CR 264 #define FCML_TK_REG_DR 265 #define FCML_TK_REG_RIP 266 #define FCML_TK_DECORATOR_BCAST 267 #define FCML_TK_DECORATOR_ER 268 #define FCML_TK_DECORATOR_Z 269 #define FCML_TK_DECORATOR_SAE 270 #define FCML_TK_OPMASK_REG_DECORATOR 271 #define FCML_TK_INTEGER 272 #define FCML_TK_SYMBOL 273 #define FCML_TK_PREFIX 274 #define FCML_TK_PO_BYTE 275 #define FCML_OP_UMINUS 276 /* Value type. */ #if ! defined GAS_STYPE && ! defined GAS_STYPE_IS_DECLARED union GAS_STYPE { #line 117 "fcml_gas_parser_def.y" /*Complex values.*/ fcml_st_ast_val_integer integer_value; fcml_st_register reg_value; fcml_st_ast_node *ast; struct { fcml_string text; int length; } symbol; fcml_hints hints; fcml_prefixes prefixes; fcml_bool bool_value; fcml_int int_value; #line 122 "fcml_gas_parser_def.h" }; typedef union GAS_STYPE GAS_STYPE; # define GAS_STYPE_IS_TRIVIAL 1 # define GAS_STYPE_IS_DECLARED 1 #endif /* Location type. */ #if ! defined GAS_LTYPE && ! defined GAS_LTYPE_IS_DECLARED typedef struct GAS_LTYPE GAS_LTYPE; struct GAS_LTYPE { int first_line; int first_column; int last_line; int last_column; }; # define GAS_LTYPE_IS_DECLARED 1 # define GAS_LTYPE_IS_TRIVIAL 1 #endif int gas_parse (struct fcml_st_parser_data *pd); /* "%code provides" blocks. */ #line 27 "fcml_gas_parser_def.y" #define YYSTYPE GAS_STYPE #define YYLTYPE GAS_LTYPE #line 153 "fcml_gas_parser_def.h" #endif /* !YY_GAS_FCML_GAS_PARSER_DEF_H_INCLUDED */