|
spot 2.14.2
|
A Bison parser. More...
#include <spot/parseaut/parseaut.hh>
Classes | |
| struct | basic_symbol |
| struct | by_kind |
| Type access provider for token (enum) based symbols. More... | |
| class | context |
| struct | symbol_kind |
| Symbol kinds. More... | |
| struct | symbol_type |
| "External" symbols: returned by the scanner. More... | |
| struct | syntax_error |
| Syntax errors thrown from user actions. More... | |
| struct | token |
| Token kinds. More... | |
| union | value_type |
| Symbol semantic values. More... | |
Public Types | |
| typedef value_type | semantic_type |
| Backward compatibility (Bison 3.8). | |
| typedef spot::location | location_type |
| Symbol locations. | |
| typedef token::token_kind_type | token_kind_type |
| Token kind, as returned by yylex. | |
| typedef token_kind_type | token_type |
| Backward compatibility alias (Bison 3.6). | |
| typedef symbol_kind::symbol_kind_type | symbol_kind_type |
| (Internal) symbol kind. | |
| typedef by_kind | by_type |
| Backward compatibility for a private implementation detail (Bison 3.6). | |
| typedef int | debug_level_type |
| Type for debugging levels. | |
Public Member Functions | |
| parser (void *scanner_yyarg, result_ &res_yyarg, spot::location initial_loc_yyarg) | |
| Build a parser object. | |
| int | operator() () |
| 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. | |
| virtual void | error (const location_type &loc, const std::string &msg) |
| void | error (const syntax_error &err) |
| Report a syntax error. | |
Static Public Member Functions | |
| static std::string | symbol_name (symbol_kind_type yysymbol) |
Static Public Attributes | |
| static const symbol_kind_type | YYNTOKENS = symbol_kind::YYNTOKENS |
| The number of tokens. | |
A Bison parser.
| typedef by_kind hoayy::parser::by_type |
Backward compatibility for a private implementation detail (Bison 3.6).
| typedef int hoayy::parser::debug_level_type |
Type for debugging levels.
| typedef spot::location hoayy::parser::location_type |
Symbol locations.
Backward compatibility (Bison 3.8).
(Internal) symbol kind.
| typedef token::token_kind_type hoayy::parser::token_kind_type |
Token kind, as returned by yylex.
| typedef token_kind_type hoayy::parser::token_type |
Backward compatibility alias (Bison 3.6).
| hoayy::parser::parser | ( | void * | scanner_yyarg, |
| result_ & | res_yyarg, | ||
| spot::location | initial_loc_yyarg | ||
| ) |
Build a parser object.
| debug_level_type hoayy::parser::debug_level | ( | ) | const |
The current debugging level.
| std::ostream & hoayy::parser::debug_stream | ( | ) | const |
The current debugging stream.
|
virtual |
Report a syntax error.
| loc | where the syntax error is found. |
| msg | a description of the syntax error. |
| void hoayy::parser::error | ( | const syntax_error & | err | ) |
Report a syntax error.
| int hoayy::parser::operator() | ( | ) |
Parse. An alias for parse ().
|
virtual |
Parse.
| void hoayy::parser::set_debug_level | ( | debug_level_type | l | ) |
Set the current debugging level.
| void hoayy::parser::set_debug_stream | ( | std::ostream & | ) |
Set the current debugging stream.
|
static |
The user-facing name of the symbol whose (internal) number is YYSYMBOL. No bounds checking.
Referenced by hoayy::parser::basic_symbol< Base >::name().
|
static |
The number of tokens.
1.9.8