How we parse: this parser works like a stack-based RPN calculator. More...
#include <rtt/scripting/ExpressionParser.hpp>
Public Member Functions | |
ExpressionParser (TaskContext *pc, CommonParser &common_parser) | |
rule_t & | parser () |
DataSourceBase::shared_ptr | getResult () |
void | dropResult () |
bool | hasResult () |
How we parse: this parser works like a stack-based RPN calculator.
An atomic expression pushes one DataSource up the stack, a binary expression pops two DataSources, and pushes a new one, a unary pops one, and pushes one etc. This allows for the reentrancy we need..
Definition at line 107 of file ExpressionParser.hpp.