bux API Reference 1.9.0
Static library of whatever are seen required in general purpose but not directly supported from Modern C++. Or whatever reusable originated from my side projects.
|
#include <GLR.h>
Classes | |
struct | C_ReduceInfo |
Public Member Functions | |
virtual std::vector< T_ActionId > | action (T_StateID state, T_LexID token) const =0 |
virtual bool | changeToken (T_LexID &token, C_LexPtr &attr) const |
virtual size_t | getAcceptId () const =0 |
virtual bool | getTokenName (T_LexID token, std::string &name) const |
virtual T_StateID | nextState (T_StateID state, T_LexID lex) const =0 |
virtual void | getReduceInfo (size_t prodId, C_ReduceInfo &info) const =0 |
virtual void | onError (C_Parser &parser, const C_SourcePos &pos, std::string_view message) const =0 |
std::string | printToken (T_LexID token) const |
|
pure virtual |
Definition at line 11 of file GLR.cpp.
Referenced by bux::GLR::C_Parser::add().
|
pure virtual |
|
pure virtual |
Definition at line 16 of file GLR.cpp.
Referenced by printToken().
|
pure virtual |
std::string bux::GLR::I_ParserPolicy::printToken | ( | T_LexID | token | ) | const |
Definition at line 21 of file GLR.cpp.
References bux::asciiLiteral(), getTokenName(), bux::ROOT_NID, bux::TID_EOF, and bux::TOKENGEN_LB.
Referenced by bux::GLR::C_Parser::add().