#include <ExpressionParser.hpp>
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 install/include/rtt/scripting/ExpressionParser.hpp.
RTT::ExpressionParser::ExpressionParser | ( | TaskContext * | pc, | |
ExecutionEngine * | caller, | |||
CommonParser & | cp | |||
) |
Definition at line 318 of file ExpressionParser.cpp.
RTT::ExpressionParser::~ExpressionParser | ( | ) |
Definition at line 555 of file ExpressionParser.cpp.
RTT::scripting::ExpressionParser::ExpressionParser | ( | TaskContext * | pc, | |
ExecutionEngine * | caller, | |||
CommonParser & | common_parser | |||
) |
RTT::scripting::ExpressionParser::~ExpressionParser | ( | ) |
void RTT::scripting::ExpressionParser::dropResult | ( | ) |
void RTT::ExpressionParser::dropResult | ( | ) |
Definition at line 683 of file ExpressionParser.cpp.
boost::shared_ptr<base::AttributeBase> RTT::scripting::ExpressionParser::getHandle | ( | ) |
In case the parsed result returns a SendHandle, ask the parser to also create a handle for it.
boost::shared_ptr< AttributeBase > RTT::ExpressionParser::getHandle | ( | ) |
In case the parsed result returns a SendHandle, ask the parser to also create a handle for it.
Definition at line 574 of file ExpressionParser.cpp.
base::DataSourceBase::shared_ptr RTT::scripting::ExpressionParser::getResult | ( | ) |
DataSourceBase::shared_ptr RTT::ExpressionParser::getResult | ( | ) |
Definition at line 568 of file ExpressionParser.cpp.
bool RTT::scripting::ExpressionParser::hasResult | ( | ) | [inline] |
Definition at line 218 of file rtt/scripting/ExpressionParser.hpp.
bool RTT::scripting::ExpressionParser::hasResult | ( | ) | [inline] |
Definition at line 218 of file install/include/rtt/scripting/ExpressionParser.hpp.
void RTT::scripting::ExpressionParser::inverttime | ( | ) | [private] |
void RTT::ExpressionParser::inverttime | ( | ) | [private] |
Definition at line 483 of file ExpressionParser.cpp.
rule_t& RTT::scripting::ExpressionParser::parser | ( | ) |
rule_t & RTT::ExpressionParser::parser | ( | ) |
Definition at line 563 of file ExpressionParser.cpp.
void RTT::scripting::ExpressionParser::seen_assign | ( | ) | [private] |
void RTT::ExpressionParser::seen_assign | ( | ) | [private] |
Definition at line 622 of file ExpressionParser.cpp.
void RTT::scripting::ExpressionParser::seen_binary | ( | const std::string & | op | ) | [private] |
void RTT::ExpressionParser::seen_binary | ( | const std::string & | op | ) | [private] |
Definition at line 605 of file ExpressionParser.cpp.
Definition at line 592 of file ExpressionParser.cpp.
void RTT::scripting::ExpressionParser::seen_index | ( | ) | [private] |
void RTT::ExpressionParser::seen_index | ( | ) | [private] |
Definition at line 667 of file ExpressionParser.cpp.
void RTT::scripting::ExpressionParser::seen_unary | ( | const std::string & | op | ) | [private] |
void RTT::ExpressionParser::seen_unary | ( | const std::string & | op | ) | [private] |
Definition at line 580 of file ExpressionParser.cpp.
void RTT::scripting::ExpressionParser::seenconstructor | ( | ) | [private] |
void RTT::ExpressionParser::seenconstructor | ( | ) | [private] |
Definition at line 549 of file ExpressionParser.cpp.
void RTT::scripting::ExpressionParser::seendatacall | ( | ) | [private] |
void RTT::ExpressionParser::seendatacall | ( | ) | [private] |
Definition at line 542 of file ExpressionParser.cpp.
void RTT::scripting::ExpressionParser::seentimeexpr | ( | ) | [private] |
void RTT::ExpressionParser::seentimeexpr | ( | ) | [private] |
Definition at line 488 of file ExpressionParser.cpp.
void RTT::scripting::ExpressionParser::seentimespec | ( | int | n | ) | [private] |
void RTT::ExpressionParser::seentimespec | ( | int | n | ) | [private] |
Definition at line 531 of file ExpressionParser.cpp.
Definition at line 502 of file ExpressionParser.cpp.
void RTT::scripting::ExpressionParser::seenvalue | ( | ) | [private] |
void RTT::ExpressionParser::seenvalue | ( | ) | [private] |
Definition at line 536 of file ExpressionParser.cpp.
bool RTT::scripting::ExpressionParser::_invert_time [private] |
Definition at line 193 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
The governing common parser.
Definition at line 191 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 187 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
TaskContext * RTT::scripting::ExpressionParser::context [private] |
Definition at line 196 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 186 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
boost::shared_ptr< base::AttributeBase > RTT::scripting::ExpressionParser::mhandle [private] |
Contains the last SendHandle encountered, Will also be dropped by dropResult().
Definition at line 160 of file install/include/rtt/scripting/ExpressionParser.hpp.
std::string RTT::scripting::ExpressionParser::mobjectname [private] |
Definition at line 164 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
std::string RTT::scripting::ExpressionParser::mpropname [private] |
Definition at line 168 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 194 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
std::stack< base::DataSourceBase::shared_ptr > RTT::scripting::ExpressionParser::parsestack [private] |
The parse stack.. see the comment for this class ( scroll up ;) ) for info on the general idea. We keep a reference to the DataSources in here, while they're in here..
Definition at line 155 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
nsecs RTT::scripting::ExpressionParser::tsecs [private] |
Definition at line 171 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 142 of file install/include/rtt/scripting/ExpressionParser.hpp.
Definition at line 192 of file install/include/rtt/scripting/ExpressionParser.hpp.