KHolidays Library
37 #ifndef PARSER_HEADER_H
38 # define PARSER_HEADER_H
51 #line 30 "holidayparserplan.ypp"
57 #include <sys/types.h>
64 #include <KCalendarSystem>
69 #line 70 "holidayparserplan.hpp"
79 #ifdef YYERROR_VERBOSE
80 # undef YYERROR_VERBOSE
81 # define YYERROR_VERBOSE 1
83 # define YYERROR_VERBOSE 1
88 # define YYTOKEN_TABLE 0
95 #ifndef YYLLOC_DEFAULT
96 # define YYLLOC_DEFAULT(Current, Rhs, N) \
100 (Current).begin = (Rhs)[1].begin; \
101 (Current).end = (Rhs)[N].end; \
105 (Current).begin = (Current).end = (Rhs)[0].end; \
120 #line 86 "holidayparserplan.ypp"
121 {
int ival;
char *sval; }
123 #line 124 "holidayparserplan.hpp"
178 virtual int parse ();
196 virtual void error (
const location_type& loc,
const std::string& msg);
201 virtual std::string yysyntax_error_ (
int yystate,
int tok);
204 virtual void yy_symbol_value_print_ (
int yytype,
215 virtual void yy_symbol_print_ (
int yytype,
222 typedef int state_type;
224 typedef stack<state_type> state_stack_type;
226 typedef stack<semantic_type> semantic_stack_type;
228 typedef stack<location_type> location_stack_type;
231 state_stack_type yystate_stack_;
233 semantic_stack_type yysemantic_stack_;
235 location_stack_type yylocation_stack_;
238 typedef unsigned char token_number_type;
241 static const short int yypact_[];
242 static const short int yypact_ninf_;
247 static const unsigned char yydefact_[];
249 static const short int yypgoto_[];
250 static const signed char yydefgoto_[];
257 static const short int yytable_[];
258 static const signed char yytable_ninf_;
260 static const short int yycheck_[];
263 static const unsigned char yystos_[];
266 static const unsigned char yyr1_[];
268 static const unsigned char yyr2_[];
270 #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
271 static const char*
const yytname_[];
276 virtual std::string yytnamerr_ (
const char *n);
281 typedef signed char rhs_number_type;
284 static const rhs_number_type yyrhs_[];
286 static const unsigned short int yyprhs_[];
288 static const unsigned char yyrline_[];
290 static const unsigned short int yytoken_number_[];
292 virtual void yy_reduce_print_ (
int r);
294 virtual void yystack_print_ ();
298 token_number_type yytranslate_ (
int t);
305 inline void yydestruct_ (
const char* yymsg,
311 inline void yypop_ (
unsigned int n = 1);
314 static const int yyeof_;
316 static const int yylast_;
317 static const int yynnts_;
318 static const int yyempty_;
319 static const int yyfinal_;
320 static const int yyterror_;
321 static const int yyerrcode_;
322 static const int yyntokens_;
323 static const unsigned int yyuser_token_number_max_;
324 static const token_number_type yyundef_token_;
328 std::ostream* yycdebug_;
token::yytokentype token_type
Token type.
void set_debug_stream(std::ostream &)
Set the current debugging stream.
int debug_level_type
Type for debugging levels.
void set_debug_level(debug_level_type l)
Set the current debugging level.
debug_level_type debug_level() const
The current debugging level.
Define the KHolidays::location class.
location location_type
Symbol locations.
virtual int parse()
Parse.
HolidayParserPlan(class HolidayParserDriverPlan &driver_yyarg)
Build a parser object.
std::ostream & debug_stream() const
The current debugging stream.
HolidayParserDriverPlan implementation class.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:06 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.