Orocos Real-Time Toolkit
2.8.3
|
Parsers and executes any RTT script you throw at it. More...
#include <rtt/scripting/ScriptParser.hpp>
Public Member Functions | |
ScriptParser (iter_t &positer, TaskContext *tc, ExecutionEngine *caller) | |
Initialize with an initial position, the TaskContext in which context to parse the scripts and the TaskContext that will call the parse() functions. More... | |
~ScriptParser () | |
void | parse (iter_t &begin, iter_t end) |
Parses and executes the script from begin to end. More... | |
base::DataSourceBase::shared_ptr | parseExcerpt (iter_t &begin, iter_t end) |
Parses and executes a (possibly) incomplete script. More... | |
Parsers and executes any RTT script you throw at it.
Definition at line 21 of file ScriptParser.hpp.
RTT::ScriptParser::ScriptParser | ( | iter_t & | positer, |
TaskContext * | tc, | ||
ExecutionEngine * | caller | ||
) |
Initialize with an initial position, the TaskContext in which context to parse the scripts and the TaskContext that will call the parse() functions.
Definition at line 46 of file ScriptParser.cpp.
References RTT::scripting::ProgramGraphParser::bodyParserResult(), RTT::Error, RTT::scripting::ProgramGraphParser::functionParser(), RTT::scripting::StateGraphParser::getParserResult(), RTT::Info, RTT::scripting::ProgramGraphParser::initBodyParser(), RTT::internal::GlobalEngine::Instance(), RTT::scripting::CommonParser::notassertingeos, RTT::scripting::StateGraphParser::parser(), RTT::scripting::ProgramGraphParser::programParser(), RTT::scripting::ProgramGraphParser::programParserResult(), RTT::TaskContext::provides(), RTT::scripting::FunctionGraph::setText(), RTT::scripting::ProgramGraphParser::statementParser(), RTT::scripting::StateGraphParser::storeOffset(), and RTT::scripting::program_load_exception::what().
RTT::ScriptParser::~ScriptParser | ( | ) |
Definition at line 222 of file ScriptParser.cpp.
Parses and executes the script from begin to end.
The script must be complete and well formed.
parse_exception | or one of its variants in case of wrong input |
Definition at line 168 of file ScriptParser.cpp.
References RTT::parse_exception::copy(), RTT::scripting::CommonParser::skipper, and RTT::scripting::StateGraphParser::storeOffset().
base::DataSourceBase::shared_ptr RTT::scripting::ScriptParser::parseExcerpt | ( | iter_t & | begin, |
iter_t | end | ||
) |
Parses and executes a (possibly) incomplete script.
parse_exception | or one of its variants in case of wrong input |