Rosetta
|
#include <Arithmetic.hh>
Public Member Functions | |
~TokenSet () override | |
Automatically generated virtual destructor for class deriving directly from VirtualBase. More... | |
TokenSet () | |
void | append (TokenCOP token) |
bool | empty () const |
Are there no more tokens remaining? More... | |
TokenCOP | top () const |
void | pop () |
std::string | log_error () const |
Print contents after parser has encountered an error. More... | |
std::string | print () const |
![]() | |
VirtualBase ()=default | |
Default constructor. More... | |
virtual | ~VirtualBase ()=default |
The virtual destructor is one of the main reasons for the VirtualBase class. More... | |
VirtualBase (VirtualBase const &)=default | |
VirtualBase (VirtualBase &&)=default | |
VirtualBase & | operator= (VirtualBase const &)=default |
VirtualBase & | operator= (VirtualBase &&)=default |
Protected Member Functions | |
std::string | print_to_curr_pos () const |
in the event of an error message, print the tokens up to the current token. More... | |
Private Attributes | |
std::list< TokenCOP > | tokens_ |
std::list< TokenCOP >::iterator | curr_pos_ |
|
overridedefault |
Automatically generated virtual destructor for class deriving directly from VirtualBase.
Auto-generated virtual destructor
|
default |
void numeric::expression_parser::TokenSet::append | ( | TokenCOP | token | ) |
bool numeric::expression_parser::TokenSet::empty | ( | ) | const |
Are there no more tokens remaining?
References curr_pos_, and tokens_.
Referenced by numeric::expression_parser::ArithmeticASTExpression::parse(), numeric::expression_parser::ArithmeticASTFunction::parse(), numeric::expression_parser::ArithmeticASTTerm::parse(), numeric::expression_parser::ArithmeticASTOrClause::parse(), numeric::expression_parser::ArithmeticASTAndClause::parse(), numeric::expression_parser::ArithmeticASTValue::parse(), numeric::expression_parser::ArithmeticASTRestTerm::parse(), numeric::expression_parser::ArithmeticASTRestOrClause::parse(), numeric::expression_parser::ArithmeticASTRestAndClause::parse(), and numeric::expression_parser::ArithmeticASTRestExpression::parse().
std::string numeric::expression_parser::TokenSet::log_error | ( | ) | const |
Print contents after parser has encountered an error.
References print_to_curr_pos().
Referenced by numeric::expression_parser::ArithmeticASTExpression::parse(), numeric::expression_parser::ArithmeticASTFunction::parse(), numeric::expression_parser::ArithmeticASTTerm::parse(), numeric::expression_parser::ArithmeticASTFactor::parse(), numeric::expression_parser::ArithmeticASTOrClause::parse(), numeric::expression_parser::ArithmeticASTAndClause::parse(), and numeric::expression_parser::ArithmeticASTValue::parse().
void numeric::expression_parser::TokenSet::pop | ( | ) |
References curr_pos_, print_to_curr_pos(), tokens_, and utility_exit_with_message.
Referenced by numeric::expression_parser::ArithmeticASTFunction::parse(), numeric::expression_parser::ArithmeticASTFactor::parse(), numeric::expression_parser::ArithmeticASTValue::parse(), numeric::expression_parser::ArithmeticASTRestTerm::parse(), numeric::expression_parser::ArithmeticASTRestOrClause::parse(), numeric::expression_parser::ArithmeticASTRestAndClause::parse(), and numeric::expression_parser::ArithmeticASTRestExpression::parse().
std::string numeric::expression_parser::TokenSet::print | ( | ) | const |
References tokens_.
|
protected |
in the event of an error message, print the tokens up to the current token.
References count, curr_pos_, test.T008_Serialization::oss, and tokens_.
Referenced by log_error(), and pop().
TokenCOP numeric::expression_parser::TokenSet::top | ( | ) | const |
References curr_pos_, tokens_, and utility_exit_with_message.
Referenced by numeric::expression_parser::ArithmeticASTFunction::parse(), numeric::expression_parser::ArithmeticASTFactor::parse(), numeric::expression_parser::ArithmeticASTValue::parse(), numeric::expression_parser::ArithmeticASTRestTerm::parse(), numeric::expression_parser::ArithmeticASTRestOrClause::parse(), numeric::expression_parser::ArithmeticASTRestAndClause::parse(), and numeric::expression_parser::ArithmeticASTRestExpression::parse().
|
private |
Referenced by append(), empty(), pop(), print_to_curr_pos(), and top().
|
private |