37 #ifndef PARSER_HEADER_H 38 # define PARSER_HEADER_H 48 #line 1 "[Bison:b4_percent_define_default]" 53 #line 54 "bison_parser.h" 58 #line 1 "[Bison:b4_percent_define_default]" 63 #line 64 "bison_parser.h" 73 #ifdef YYERROR_VERBOSE 74 # undef YYERROR_VERBOSE 75 # define YYERROR_VERBOSE 1 77 # define YYERROR_VERBOSE 1 82 # define YYTOKEN_TABLE 0 89 #ifndef YYLLOC_DEFAULT 90 # define YYLLOC_DEFAULT(Current, Rhs, N) \ 94 (Current).begin = (Rhs)[1].begin; \ 95 (Current).end = (Rhs)[N].end; \ 99 (Current).begin = (Current).end = (Rhs)[0].end; \ 106 #line 1 "[Bison:b4_percent_define_default]" 111 #line 112 "bison_parser.h" 134 #line 135 "bison_parser.h" 171 virtual int parse ();
174 std::ostream& debug_stream ()
const;
177 void set_debug_stream (std::ostream &);
180 typedef int debug_level_type;
182 debug_level_type debug_level ()
const;
184 void set_debug_level (debug_level_type l);
191 virtual void error (
const location_type& loc,
const std::string& msg);
199 virtual void yy_symbol_value_print_ (
int yytype,
204 const semantic_type* yyvaluep,
205 const location_type* yylocationp);
210 virtual void yy_symbol_print_ (
int yytype,
211 const semantic_type* yyvaluep,
212 const location_type* yylocationp);
265 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE 266 static const char*
const yytname_[];
271 virtual std::string
yytnamerr_ (
const char *n);
276 typedef signed char rhs_number_type;
279 static const rhs_number_type yyrhs_[];
281 static const unsigned char yyprhs_[];
283 static const unsigned char yyrline_[];
285 static const unsigned short int yytoken_number_[];
287 virtual void yy_reduce_print_ (
int r);
289 virtual void yystack_print_ ();
293 std::ostream* yycdebug_;
306 semantic_type* yyvaluep,
307 location_type* yylocationp);
310 inline void yypop_ (
unsigned int n = 1);
330 #line 1 "[Bison:b4_percent_define_default]" 335 #line 336 "bison_parser.h" static const int yyterror_
int state_type
State numbers.
static const unsigned char yyr1_[]
For a rule, its LHS.
static const int yyerrcode_
token_number_type yytranslate_(int t)
Convert a scanner token number t to a symbol number.
void yydestruct_(const char *yymsg, int yytype, semantic_type *yyvaluep, location_type *yylocationp)
Reclaim the memory associated to a symbol.
static const token_number_type yyundef_token_
static const unsigned int yyuser_token_number_max_
static const unsigned char yytable_[]
static const signed char yycheck_[]
static const int yyfinal_
static const signed char yypact_ninf_
semantic_stack_type yysemantic_stack_
The semantic value stack.
virtual void error(const location_type &loc, const std::string &msg)
state_stack_type yystate_stack_
The state stack.
virtual std::string yytnamerr_(const char *n)
Convert the symbol name n to a form suitable for a diagnostic.
static const signed char yypgoto_[]
unsigned char token_number_type
Internal symbol numbers.
stack< location_type > location_stack_type
location stack type.
std::vector< int > * intList
static const signed char yypact_[]
For a state, the index in yytable_ of its portion.
virtual std::string yysyntax_error_(int yystate, int tok)
stack< semantic_type > semantic_stack_type
Semantic value stack type.
location location_type
Symbol locations.
token::yytokentype token_type
Token type.
static const char *const yytname_[]
For a symbol, its name in clear.
static const signed char yytable_ninf_
static const int yyempty_
stack< state_type > state_stack_type
State stack type.
static const int yyntokens_
class CommandNode * commandNode
static const signed char yydefgoto_[]
static const unsigned char yyr2_[]
For a rule, its RHS length.
void yypop_(unsigned int n=1)
Pop n symbols the three stacks.
location_stack_type yylocation_stack_
The location stack.
static const unsigned char yystos_[]
For a state, its accessing symbol.
static const unsigned char yydefact_[]
Parser(class Driver &driver_yyarg)
Build a parser object.