A Bison parser.
|
Public Types |
typedef location | location_type |
| Symbol locations.
|
typedef token::yytokentype | token_type |
| Token type.
|
typedef int | debug_level_type |
| Type for debugging levels.
|
Public Member Functions |
| Parser (class Driver &inDriver_yyarg) |
| Build a parser object.
|
virtual int | parse () |
std::ostream & | debug_stream () const |
| The current debugging stream.
|
void | set_debug_stream (std::ostream &) |
| Set the current debugging stream.
|
debug_level_type | debug_level () const |
| The current debugging level.
|
void | set_debug_level (debug_level_type l) |
| Set the current debugging level.
|
Private Types |
typedef int | state_type |
| State numbers.
|
typedef stack< state_type > | state_stack_type |
| State stack type.
|
typedef stack< semantic_type > | semantic_stack_type |
| Semantic value stack type.
|
typedef stack< location_type > | location_stack_type |
| location stack type.
|
typedef unsigned short int | token_number_type |
| Internal symbol numbers.
|
typedef short int | rhs_number_type |
| A type to store symbol numbers and -1.
|
Private Member Functions |
virtual void | error (const location_type &loc, const std::string &msg) |
virtual std::string | yysyntax_error_ (int yystate, int tok) |
virtual void | yy_symbol_value_print_ (int yytype, const semantic_type *yyvaluep, const location_type *yylocationp) |
| Report a symbol value on the debug stream.
|
virtual void | yy_symbol_print_ (int yytype, const semantic_type *yyvaluep, const location_type *yylocationp) |
| Report a symbol on the debug stream.
|
virtual std::string | yytnamerr_ (const char *n) |
| Convert the symbol name n to a form suitable for a diagnostic.
|
virtual void | yy_reduce_print_ (int r) |
| Report on the debug stream that the rule r is going to be reduced.
|
virtual void | yystack_print_ () |
| Print the state stack on the debug stream.
|
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.
|
void | yypop_ (unsigned int n=1) |
| Pop n symbols the three stacks.
|
Private Attributes |
state_stack_type | yystate_stack_ |
| The state stack.
|
semantic_stack_type | yysemantic_stack_ |
| The semantic value stack.
|
location_stack_type | yylocation_stack_ |
| The location stack.
|
int | yydebug_ |
std::ostream * | yycdebug_ |
class Driver & | inDriver |
Static Private Attributes |
static const short int | yypact_ [] |
| For a state, the index in yytable_ of its portion.
|
static const short int | yypact_ninf_ = -1561 |
static const unsigned short int | yydefact_ [] |
static const short int | yypgoto_ [] |
static const short int | yydefgoto_ [] |
static const unsigned short int | yytable_ [] |
static const signed char | yytable_ninf_ = -1 |
static const short int | yycheck_ [] |
static const unsigned short int | yystos_ [] |
| For a state, its accessing symbol.
|
static const unsigned short int | yyr1_ [] |
| For a rule, its LHS.
|
static const unsigned char | yyr2_ [] |
| For a rule, its RHS length.
|
static const char *const | yytname_ [] |
| For a symbol, its name in clear.
|
static const rhs_number_type | yyrhs_ [] |
| A `-1'-separated list of the rules' RHS.
|
static const unsigned short int | yyprhs_ [] |
| For each rule, the index of the first RHS symbol in yyrhs_.
|
static const unsigned short int | yyrline_ [] |
| For each rule, its source line number.
|
static const unsigned short int | yytoken_number_ [] |
| For each scanner token number, its symbol number.
|
static const int | yyeof_ = 0 |
static const int | yylast_ = 2272 |
static const int | yynnts_ = 553 |
static const int | yyempty_ = -2 |
static const int | yyfinal_ = 4 |
static const int | yyterror_ = 1 |
static const int | yyerrcode_ = 256 |
static const int | yyntokens_ = 296 |
static const unsigned int | yyuser_token_number_max_ = 550 |
static const token_number_type | yyundef_token_ = 2 |
Classes |
union | semantic_type |
| Symbol semantic values. More...
|
struct | token |
| Tokens. More...
|
A Bison parser.