spot 2.12.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). More... | |
typedef spot::location | location_type |
Symbol locations. More... | |
typedef token::token_kind_type | token_kind_type |
Token kind, as returned by yylex. More... | |
typedef token_kind_type | token_type |
Backward compatibility alias (Bison 3.6). More... | |
typedef symbol_kind::symbol_kind_type | symbol_kind_type |
(Internal) symbol kind. More... | |
typedef by_kind | by_type |
Backward compatibility for a private implementation detail (Bison 3.6). More... | |
typedef int | debug_level_type |
Type for debugging levels. More... | |
Public Member Functions | |
parser (void *scanner_yyarg, result_ &res_yyarg, spot::location initial_loc_yyarg) | |
Build a parser object. More... | |
int | operator() () |
virtual int | parse () |
std::ostream & | debug_stream () const |
The current debugging stream. More... | |
void | set_debug_stream (std::ostream &) |
Set the current debugging stream. More... | |
debug_level_type | debug_level () const |
The current debugging level. More... | |
void | set_debug_level (debug_level_type l) |
Set the current debugging level. More... | |
virtual void | error (const location_type &loc, const std::string &msg) |
void | error (const syntax_error &err) |
Report a syntax error. More... | |
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. More... | |
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.
|
static |
The number of tokens.