37 #ifndef PARSER_HEADER_H
38 # define PARSER_HEADER_H
48 #line 1 "[Bison:b4_percent_define_default]"
58 #line 1 "[Bison:b4_percent_define_default]"
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]"
147 initializeOnly = 275,
165 virtual int parse ();
185 virtual void error (
const location_type& loc,
const std::string& msg);
190 virtual std::string yysyntax_error_ (
int yystate,
int tok);
197 virtual void yy_symbol_value_print_ (
int yytype,
204 virtual void yy_symbol_print_ (
int yytype,
211 typedef int state_type;
213 typedef stack<state_type> state_stack_type;
215 typedef stack<semantic_type> semantic_stack_type;
217 typedef stack<location_type> location_stack_type;
220 state_stack_type yystate_stack_;
222 semantic_stack_type yysemantic_stack_;
224 location_stack_type yylocation_stack_;
227 typedef unsigned char token_number_type;
230 static const short int yypact_[];
231 static const signed char yypact_ninf_;
236 static const unsigned char yydefact_[];
238 static const short int yypgoto_[];
239 static const short int yydefgoto_[];
246 static const short int yytable_[];
247 static const signed char yytable_ninf_;
249 static const short int yycheck_[];
252 static const unsigned char yystos_[];
255 static const unsigned char yyr1_[];
257 static const unsigned char yyr2_[];
259 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
261 static const char*
const yytname_[];
266 virtual std::string yytnamerr_ (
const char *n);
271 typedef signed char rhs_number_type;
273 static const rhs_number_type yyrhs_[];
275 static const unsigned short int yyprhs_[];
277 static const unsigned short int yyrline_[];
279 static const unsigned short int yytoken_number_[];
281 virtual void yy_reduce_print_ (
int r);
283 virtual void yystack_print_ ();
287 std::ostream* yycdebug_;
291 token_number_type yytranslate_ (
int t);
298 inline void yydestruct_ (
const char* yymsg,
304 inline void yypop_ (
unsigned int n = 1);
307 static const int yyeof_;
309 static const int yylast_;
310 static const int yynnts_;
311 static const int yyempty_;
312 static const int yyfinal_;
313 static const int yyterror_;
314 static const int yyerrcode_;
315 static const int yyntokens_;
316 static const unsigned int yyuser_token_number_max_;
317 static const token_number_type yyundef_token_;
324 #line 1 "[Bison:b4_percent_define_default]"
A Bison parser.
Definition: vrml.hpp:115
virtual int parse()
Parse.
Definition: vrml.cpp:322
VrmlParser(VrmlDriver &driver_yyarg)
Build a parser object.
Definition: vrml.cpp:235
int semantic_type
Symbol semantic values.
Definition: vrml.hpp:119
void set_debug_level(debug_level_type l)
Set the current debugging level.
Definition: vrml.cpp:315
location location_type
Symbol locations.
Definition: vrml.hpp:124
int debug_level_type
Type for debugging levels.
Definition: vrml.hpp:174
debug_level_type debug_level() const
The current debugging level.
Definition: vrml.cpp:309
token::yytokentype token_type
Token type.
Definition: vrml.hpp:157
std::ostream & debug_stream() const
The current debugging stream.
Definition: vrml.cpp:296
void set_debug_stream(std::ostream &)
Set the current debugging stream.
Definition: vrml.cpp:302
Abstract a location.
Definition: location.hh:57
Define the yy::location class.
Tokens.
Definition: vrml.hpp:127