librostlab-blast
1.0.1
|
A Bison parser. More...
#include <blast-parser-parser.h>
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 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 (rostlab::blast::parser_driver &drv_yyarg, void *yyscanner_yyarg) | |
Build a parser object. More... | |
virtual | ~parser () |
int | operator() () |
virtual int | parse () |
std::ostream & | debug_stream () const YY_ATTRIBUTE_PURE |
The current debugging stream. More... | |
void | set_debug_stream (std::ostream &) |
Set the current debugging stream. More... | |
debug_level_type | debug_level () const YY_ATTRIBUTE_PURE |
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.
Definition at line 196 of file blast-parser-parser.h.
Backward compatibility for a private implementation detail (Bison 3.6).
Definition at line 479 of file blast-parser-parser.h.
typedef int rostlab::blast::parser::debug_level_type |
Type for debugging levels.
Definition at line 511 of file blast-parser-parser.h.
Symbol locations.
Definition at line 222 of file blast-parser-parser.h.
Backward compatibility (Bison 3.8).
Definition at line 219 of file blast-parser-parser.h.
(Internal) symbol kind.
Definition at line 353 of file blast-parser-parser.h.
Token kind, as returned by yylex.
Definition at line 282 of file blast-parser-parser.h.
Backward compatibility alias (Bison 3.6).
Definition at line 285 of file blast-parser-parser.h.
rostlab::blast::parser::parser | ( | rostlab::blast::parser_driver & | drv_yyarg, |
void * | yyscanner_yyarg | ||
) |
Build a parser object.
|
virtual |
debug_level_type rostlab::blast::parser::debug_level | ( | ) | const |
The current debugging level.
std::ostream& rostlab::blast::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 rostlab::blast::parser::error | ( | const syntax_error & | err | ) |
Report a syntax error.
int rostlab::blast::parser::operator() | ( | ) |
Parse. An alias for parse ().
|
virtual |
Parse.
void rostlab::blast::parser::set_debug_level | ( | debug_level_type | l | ) |
Set the current debugging level.
void rostlab::blast::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.
Definition at line 356 of file blast-parser-parser.h.