Orocos Real-Time Toolkit  2.5.0
Public Member Functions
RTT::scripting::ExpressionParser Class Reference

How we parse: this parser works like a stack-based RPN calculator. More...

#include <rtt/scripting/ExpressionParser.hpp>

List of all members.

Public Member Functions

 ExpressionParser (TaskContext *pc, ExecutionEngine *caller, CommonParser &common_parser)
rule_t & parser ()
base::DataSourceBase::shared_ptr getResult ()
boost::shared_ptr
< base::AttributeBase
getHandle ()
 In case the parsed result returns a SendHandle, ask the parser to also create a handle for it.
void dropResult ()
bool hasResult ()

Detailed Description

How we parse: this parser works like a stack-based RPN calculator.

An atomic expression pushes one internal::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 140 of file ExpressionParser.hpp.


Member Function Documentation

In case the parsed result returns a SendHandle, ask the parser to also create a handle for it.

Returns:
null pointer if no handle could be made.

Definition at line 588 of file ExpressionParser.cpp.


The documentation for this class was generated from the following files: