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>
Public Member Functions | |
C_Parser (const I_ParserPolicy &policy) | |
void | eachAccepted (std::function< void(C_LexPtr &)> apply) |
void | onError (const C_SourcePos &pos, std::string_view message) |
void | userData (void *p) |
void * | userData () const |
void | add (T_LexID token, unsigned line, unsigned col, I_LexAttr *unownedAttr) override |
std::string_view | setSource (std::string_view src) override |
Public Member Functions inherited from bux::I_Parser | |
virtual | ~I_Parser ()=default |
Public Attributes | |
const I_ParserPolicy & | m_policy |
bux::GLR::C_Parser::C_Parser | ( | const I_ParserPolicy & | policy | ) |
|
overridevirtual |
Implements bux::I_Parser.
Definition at line 56 of file GLR.cpp.
References bux::GLR::I_ParserPolicy::action(), bux::GLR::ACTION_ACCEPT, bux::GLR::ACTION_REDUCE_MIN, bux::GLR::ACTION_SHIFT, bux::GLR::I_ParserPolicy::changeToken(), bux::GLR::I_ParserPolicy::getAcceptId(), HRTN, bux::C_LexInfoT< T, C_Ptr >::m_attr, bux::C_SourcePos::m_Col, bux::C_SourcePos::m_Line, m_policy, bux::C_LexInfoT< T, C_Ptr >::m_pos, bux::C_SourcePos::m_Source, bux::GLR::I_ParserPolicy::nextState(), onError(), and bux::GLR::I_ParserPolicy::printToken().
void bux::GLR::C_Parser::eachAccepted | ( | std::function< void(C_LexPtr &)> | apply | ) |
void bux::GLR::C_Parser::onError | ( | const C_SourcePos & | pos, |
std::string_view | message ) |
Definition at line 191 of file GLR.cpp.
References m_policy, and bux::GLR::I_ParserPolicy::onError().
Referenced by add().
|
overridevirtual |
Implements bux::I_Parser.
const I_ParserPolicy& bux::GLR::C_Parser::m_policy |