A Bison parser. More...
#include <Parser.h>
Classes | |
union | semantic_type |
Symbol semantic values. More... | |
struct | token |
Tokens. More... | |
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 (Driver &driver_yyarg) | |
Build a parser object. | |
virtual int | parse () |
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. |
A Bison parser.
typedef int mgf::Parser::debug_level_type |
Type for debugging levels.
typedef location mgf::Parser::location_type |
Symbol locations.
typedef token::yytokentype mgf::Parser::token_type |
Token type.
mgf::Parser::Parser | ( | Driver & | driver_yyarg | ) |
Build a parser object.
debug_level_type mgf::Parser::debug_level | ( | ) | const |
The current debugging level.
std::ostream& mgf::Parser::debug_stream | ( | ) | const |
The current debugging stream.
int mgf::Parser::parse | ( | ) | [virtual] |
Parse.
Lookahead and lookahead in internal form.
Semantic value of the lookahead.
Location of the lookahead.
The locations where the error started and ended.
$$.
$.
void mgf::Parser::set_debug_level | ( | debug_level_type | l | ) |
Set the current debugging level.
void mgf::Parser::set_debug_stream | ( | std::ostream & | ) |
Set the current debugging stream.