buffalo
|
#include <buffalo.h>
Public Types | |
using | ReasonerType = typename G::ValueType(*)(Token< G > const &) |
Public Member Functions | |
std::optional< typename G::ValueType > | Reason (Token< G > const &token) const |
virtual std::optional< Token< G > > | Lex (std::string_view input) const |
Terminal (Terminal< G > &&)=delete | |
Terminal (Terminal< G > const &)=delete | |
Public Attributes | |
std::size_t | precedence = Terminal::counter++ |
Associativity | associativity = Associativity::None |
G::UserDataType | user_data |
Public Attributes inherited from bf::DebugSymbol | |
char const * | debug_name = "Generic Symbol" |
Protected Member Functions | |
Terminal ()=default | |
Protected Attributes | |
ReasonerType | reasoner_ = nullptr |
Static Protected Attributes | |
static std::size_t | counter = 0 |
Friends | |
class | Grammar< G > |
using bf::Terminal< G >::ReasonerType = typename G::ValueType(*)(Token<G> const&) |
|
protecteddefault |
|
delete |
|
delete |
|
inlinevirtual |
Reimplemented in bf::DefineTerminal< G, regex, SemanticType >.
|
inline |
Associativity bf::Terminal< G >::associativity = Associativity::None |
|
inlinestaticprotected |
std::size_t bf::Terminal< G >::precedence = Terminal::counter++ |
|
protected |
G::UserDataType bf::Terminal< G >::user_data |