ra4_draw
4bd0201e3d922d42bd545d4b045ed44db33454a4
|
#include <token.hpp>
Public Member Functions | |
Token (const std::string &function_string="", Type type=Type::unknown) | |
Token (const NamedFunc &function) | |
Token (const Token &)=default | |
Token & | operator= (const Token &)=default |
Token (Token &&)=default | |
Token & | operator= (Token &&)=default |
~Token ()=default | |
Static Public Member Functions | |
static Type | GetType (char x) |
static Type | GetType (const std::string &x) |
Public Attributes | |
NamedFunc | function_ |
std::string | string_rep_ |
Type | type_ |
|
strong |
Token::Token | ( | const std::string & | function_string = "" , |
Type | type = Type::unknown |
||
) |
|
default |
|
default |
|
default |
|
static |
Referenced by Token(), and FunctionParser::Tokenize().
|
static |
Definition at line 20 of file token.cpp.
References ambiguous_minus, ambiguous_plus, close_paren, close_square, divide, equal, greater_equal, less_equal, logical_and, logical_or, modulus, multiply, not_equal, open_paren, open_square, and unknown.
NamedFunc Token::function_ |
Definition at line 32 of file token.hpp.
Referenced by FunctionParser::AddAndSubtract(), FunctionParser::And(), FunctionParser::ApplySubscripts(), FunctionParser::ApplyUnary(), FunctionParser::EqualOrNot(), FunctionParser::LessGreater(), FunctionParser::MergeParentheses(), FunctionParser::MultiplyAndDivide(), and FunctionParser::Or().
std::string Token::string_rep_ |
Definition at line 33 of file token.hpp.
Referenced by operator<<().
Type Token::type_ |
Definition at line 34 of file token.hpp.
Referenced by FunctionParser::AddAndSubtract(), FunctionParser::And(), FunctionParser::ApplySubscripts(), FunctionParser::ApplyUnary(), FunctionParser::DisambiguatePlusMinus(), FunctionParser::EqualOrNot(), FunctionParser::LessGreater(), FunctionParser::MergeParentheses(), FunctionParser::MultiplyAndDivide(), operator<<(), FunctionParser::Or(), and Token().