MIXAL
|
The parsing and evaluation of expressions. More...
Go to the source code of this file.
Enumerations | |
enum | mixal::ExprParseState { mixal::ExprParseState::START, mixal::ExprParseState::ATOMIC, mixal::ExprParseState::OPERATION, mixal::ExprParseState::END } |
Functions | |
bool | mixal::isOperationFirst (char ch) |
std::ostream & | mixal::operator<< (std::ostream &out, Operation operation) |
std::ostream & | mixal::operator<< (std::ostream &out, const Expression &expression) |
The parsing and evaluation of expressions.
Definition in file expression.cpp.
|
strong |
The states while parsing the expression.
However, multiple signs like ++
or ---
will be rejected as they are useless.
Definition at line 77 of file expression.cpp.
|
inline |
Whether an operation can start with the given character.
Definition at line 85 of file expression.cpp.
References mixal::isOperationFirst().
Referenced by mixal::isOperationFirst(), and mixal::Expression::parse().
std::ostream& mixal::operator<< | ( | std::ostream & | out, |
const Expression & | expression | ||
) |
Output the expression.
Definition at line 346 of file expression.cpp.
References mixal::operator<<().
std::ostream & mixal::operator<< | ( | std::ostream & | out, |
Operation | operation | ||
) |
Output the symbol of the operation.
Definition at line 335 of file expression.cpp.
References mixal::operator<<().
Referenced by mixal::operator<<().