#include <qmake_yacc.hpp>
Classes | |
struct | token |
Public Types | |
typedef YYSTYPE | semantic_type |
typedef location | location_type |
typedef token::yytokentype | token_type |
typedef int | debug_level_type |
Public Member Functions | |
Parser (TQMake::Lexer *lexer_yyarg, TQValueStack< ProjectAST *> &projects_yyarg, int depth_yyarg) | |
virtual int | parse () |
std::ostream & | debug_stream () const |
void | set_debug_stream (std::ostream &) |
debug_level_type | debug_level () const |
void | set_debug_level (debug_level_type l) |
Detailed Description
A Bison parser.
Definition at line 209 of file qmake_yacc.hpp.
Member Typedef Documentation
◆ debug_level_type
typedef int TQMake::Parser::debug_level_type |
Type for debugging levels.
Definition at line 265 of file qmake_yacc.hpp.
◆ location_type
Symbol locations.
Definition at line 219 of file qmake_yacc.hpp.
◆ semantic_type
typedef YYSTYPE TQMake::Parser::semantic_type |
Symbol semantic values.
Definition at line 216 of file qmake_yacc.hpp.
◆ token_type
typedef token::yytokentype TQMake::Parser::token_type |
Token type.
Definition at line 249 of file qmake_yacc.hpp.
Constructor & Destructor Documentation
◆ Parser()
TQMake::Parser::Parser | ( | TQMake::Lexer * | lexer_yyarg, |
TQValueStack< ProjectAST *> & | projects_yyarg, | ||
int | depth_yyarg | ||
) |
Build a parser object.
Definition at line 147 of file qmake_yacc.cpp.
Member Function Documentation
◆ debug_level()
Parser::debug_level_type TQMake::Parser::debug_level | ( | ) | const |
The current debugging level.
Definition at line 231 of file qmake_yacc.cpp.
◆ debug_stream()
std::ostream & TQMake::Parser::debug_stream | ( | ) | const |
The current debugging stream.
Definition at line 218 of file qmake_yacc.cpp.
◆ parse()
|
virtual |
Parse.
- Returns
- 0 iff parsing succeeded.
Look-ahead and look-ahead in internal form.
Semantic value of the look-ahead.
Location of the look-ahead.
The locations where the error started and ended.
$$.
$.
Definition at line 244 of file qmake_yacc.cpp.
◆ set_debug_level()
void TQMake::Parser::set_debug_level | ( | debug_level_type | l | ) |
Set the current debugging level.
Definition at line 237 of file qmake_yacc.cpp.
◆ set_debug_stream()
void TQMake::Parser::set_debug_stream | ( | std::ostream & | o | ) |
Set the current debugging stream.
Definition at line 224 of file qmake_yacc.cpp.
The documentation for this class was generated from the following files: