37 #ifndef PARSER_HEADER_H
38 # define PARSER_HEADER_H
82 using namespace torc::bitstream;
84 #define YYSTYPE std::string
94 #define yylex lut.lexer->lex
99 #line 100 "LutParser.hpp"
109 #ifdef YYERROR_VERBOSE
110 # undef YYERROR_VERBOSE
111 # define YYERROR_VERBOSE 1
113 # define YYERROR_VERBOSE 1
117 #ifndef YYTOKEN_TABLE
118 # define YYTOKEN_TABLE 0
125 #ifndef YYLLOC_DEFAULT
126 # define YYLLOC_DEFAULT(Current, Rhs, N) \
130 (Current).begin = (Rhs)[1].begin; \
131 (Current).end = (Rhs)[N].end; \
135 (Current).begin = (Current).end = (Rhs)[0].end; \
183 virtual int parse ();
186 std::ostream& debug_stream ()
const;
188 void set_debug_stream (std::ostream &);
206 virtual std::string yysyntax_error_ (
int yystate,
int tok);
213 virtual void yy_symbol_value_print_ (
int yytype,
220 virtual void yy_symbol_print_ (
int yytype,
246 static const signed char yypact_[];
252 static const unsigned char yydefact_[];
254 static const signed char yypgoto_[];
255 static const signed char yydefgoto_[];
262 static const unsigned char yytable_[];
265 static const signed char yycheck_[];
268 static const unsigned char yystos_[];
271 static const unsigned char yyr1_[];
273 static const unsigned char yyr2_[];
275 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
277 static const char*
const yytname_[];
287 typedef signed char rhs_number_type;
289 static const rhs_number_type yyrhs_[];
291 static const unsigned char yyprhs_[];
293 static const unsigned char yyrline_[];
295 static const unsigned short int yytoken_number_[];
297 virtual void yy_reduce_print_ (
int r);
299 virtual void yystack_print_ ();
310 inline void yydestruct_ (
const char* yymsg,
316 inline void yypop_ (
unsigned int n = 1);
stack< semantic_type > semantic_stack_type
Semantic value stack type.
token::yytokentype token_type
Token type.
YYSTYPE semantic_type
Symbol semantic values.
static const int yyntokens_
location_stack_type yylocation_stack_
The location stack.
semantic_stack_type yysemantic_stack_
The semantic value stack.
int debug_level_type
Type for debugging levels.
int state_type
State numbers.
Base class for Xdl to bitstream conversion. This class is abstract but still contains lot of architec...
static const unsigned int yyuser_token_number_max_
static const signed char yytable_ninf_
static const int yyerrcode_
static const signed char yypact_ninf_
stack< location_type > location_stack_type
location stack type.
static const int yyempty_
static const token_number_type yyundef_token_
static const int yyterror_
location location_type
Symbol locations.
stack< state_type > state_stack_type
State stack type.
static const int yyfinal_
unsigned char token_number_type
Internal symbol numbers.
state_stack_type yystate_stack_
The state stack.
Base class for bitstream assembly.