#include <la_parser_writer.hh>
Inheritance diagram for LaParserWriter:
Public Methods | |
LaParserWriter (PropRegistry ®istry_) | |
void | writeParser (ParserSpec &pSpec, ITokenSpec &tSpec, const string &scannerClass) |
Protected Methods | |
void | writeProductionDecls (vector< ProductionSpec > &prods) |
void | writeProductionLaDecls (vector< ProductionSpec > &prods) |
void | writeLaEpDecls (vector< ProductionSpec > &prods) |
void | writeProductionDefs (vector< ProductionSpec > &prods, const string &parserClass, ITokenSpec &tokens) |
ostream& | makeLaCondition (vBitset &tMask, NumberedLaSpec *la, ITokenSpec &tokens) |
void | writeEbnf (EbnfLaNode &n, ITokenSpec &tokens) |
void | writeEbnfLa (EbnfLaNode &n, ITokenSpec &tokens) |
void | writeLaDefs (vector< ProductionSpec > &prods, const string &parserClass, ITokenSpec &tokens, PropRegistry ®istry) |
Friends | |
class | LaEpDefWriter |
class | LaEpDeclWriter |
Definition at line 66 of file la_parser_writer.hh.
|
Definition at line 73 of file la_parser_writer.hh. |
|
This is the method that dumps the whole thing into source files. Definition at line 63 of file la_parser_writer.cc. Referenced by CppCcDriver::run().
|
|
Writes the metho declaration for each production in the given vector. Definition at line 265 of file la_parser_writer.cc. Referenced by writeParser().
|
|
Writes the declaration of the lookahead method for each production in the given vector. Definition at line 300 of file la_parser_writer.cc. Referenced by writeParser().
|
|
Writes the declarations for lookahead entry points that are needed for each production in the given vector. Definition at line 357 of file la_parser_writer.cc. Referenced by writeParser().
|
|
Writes the definition of each production's method. Definition at line 483 of file la_parser_writer.cc. Referenced by writeParser().
|
|
Writes a boolean expression that tests whether the current token kind is any of those in the tmask set. If the la structures is not NULL, the condition also contains any lookahead tests required by the lookahead hint. Definition at line 376 of file la_parser_writer.cc. Referenced by writeEbnf(), and writeEbnfLa().
|
|
Writes the code that matches the given EBNF expansion. Definition at line 412 of file la_parser_writer.cc. Referenced by writeProductionDefs().
|
|
Wtrites the code that matches the given EBNF expansion while in lookahead mode. Definition at line 531 of file la_parser_writer.cc. Referenced by LaEpDefWriter::operator()(), and writeLaDefs().
|
|
Writes the lookahead method definitions for all the productions in the given vector. Definition at line 667 of file la_parser_writer.cc. Referenced by writeParser().
|
|
Definition at line 68 of file la_parser_writer.hh. |
|
Definition at line 69 of file la_parser_writer.hh. |