A Parser for Orocos Program Scripts. More...
#include <ProgramGraphParser.hpp>
A Parser for Orocos Program Scripts.
This class does the actual work. It generates a Program, by constructing the ProgramNode's. We just go over the code one single time, and construct the Program as we go. For every statement, we construct a new ProgramNode, and fill it up as we get the information we need.
Definition at line 67 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 74 of file rtt/scripting/ProgramGraphParser.hpp.
Definition at line 58 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
typedef FunctionGraphBuilder::ConditionEdge RTT::scripting::ProgramGraphParser::ConditionEdge [private] |
Definition at line 75 of file rtt/scripting/ProgramGraphParser.hpp.
typedef FunctionGraphBuilder::ConditionEdge RTT::scripting::ProgramGraphParser::ConditionEdge [private] |
Definition at line 59 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
typedef std::map<std::string, FunctionGraphPtr> RTT::scripting::ProgramGraphParser::funcmap [private] |
Definition at line 108 of file rtt/scripting/ProgramGraphParser.hpp.
typedef std::map<std::string, FunctionGraphPtr> RTT::scripting::ProgramGraphParser::funcmap [private] |
Definition at line 92 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
typedef FunctionGraphBuilder::Graph RTT::scripting::ProgramGraphParser::Graph [private] |
Definition at line 76 of file rtt/scripting/ProgramGraphParser.hpp.
typedef FunctionGraphBuilder::Graph RTT::scripting::ProgramGraphParser::Graph [private] |
Definition at line 60 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
RTT::ProgramGraphParser::ProgramGraphParser | ( | iter_t & | positer, | |
TaskContext * | context, | |||
ExecutionEngine * | caller, | |||
CommonParser & | cp | |||
) |
Definition at line 59 of file ProgramGraphParser.cpp.
RTT::ProgramGraphParser::~ProgramGraphParser | ( | ) |
Definition at line 79 of file ProgramGraphParser.cpp.
RTT::scripting::ProgramGraphParser::ProgramGraphParser | ( | iter_t & | positer, | |
TaskContext * | context, | |||
ExecutionEngine * | caller, | |||
CommonParser & | cp | |||
) |
RTT::scripting::ProgramGraphParser::~ProgramGraphParser | ( | ) |
rule_t& RTT::scripting::ProgramGraphParser::bodyParser | ( | ) |
Parses a multi-line program, which you can retrieve with bodyParserResult(). You need to initialize it with initBodyParser
rule_t & RTT::ProgramGraphParser::bodyParser | ( | ) |
Parses a multi-line program, which you can retrieve with bodyParserResult(). You need to initialize it with initBodyParser
Definition at line 206 of file ProgramGraphParser.cpp.
ProgramInterfacePtr RTT::scripting::ProgramGraphParser::bodyParserResult | ( | ) |
ProgramInterfacePtr RTT::ProgramGraphParser::bodyParserResult | ( | ) |
Definition at line 229 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::cleanup | ( | bool | remove_service | ) | [private] |
void RTT::ProgramGraphParser::cleanup | ( | bool | remove_service | ) | [private] |
Definition at line 728 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::clearParseState | ( | ) | [private] |
Clears helper variables of parser.
void RTT::ProgramGraphParser::clearParseState | ( | ) | [private] |
Clears helper variables of parser.
Definition at line 254 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::endforstatement | ( | ) | [private] |
void RTT::ProgramGraphParser::endforstatement | ( | ) | [private] |
Definition at line 595 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::endifblock | ( | ) | [private] |
void RTT::ProgramGraphParser::endifblock | ( | ) | [private] |
Definition at line 512 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::endifstatement | ( | ) | [private] |
void RTT::ProgramGraphParser::endifstatement | ( | ) | [private] |
Definition at line 517 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::endwhilestatement | ( | ) | [private] |
void RTT::ProgramGraphParser::endwhilestatement | ( | ) | [private] |
Definition at line 534 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::exportdef | ( | ) | [private] |
void RTT::ProgramGraphParser::exportdef | ( | ) | [private] |
Definition at line 287 of file ProgramGraphParser.cpp.
Definition at line 296 of file ProgramGraphParser.cpp.
rule_t& RTT::scripting::ProgramGraphParser::functionParser | ( | ) |
Parses a function foo {} definition.
rule_t & RTT::ProgramGraphParser::functionParser | ( | ) |
Parses a function foo {} definition.
Definition at line 202 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::initBodyParser | ( | const std::string & | name, | |
Service::shared_ptr | stck, | |||
int | offset | |||
) |
Initialize the bodyParser to parse and store each statement it sees. The result is retrieved with bodyParserResult().
void RTT::ProgramGraphParser::initBodyParser | ( | const std::string & | name, | |
Service::shared_ptr | stck, | |||
int | offset | |||
) |
Initialize the bodyParser to parse and store each statement it sees. The result is retrieved with bodyParserResult().
Definition at line 190 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::noskip_eol | ( | ) | [private] |
void RTT::ProgramGraphParser::noskip_eol | ( | ) | [private] |
Definition at line 481 of file ProgramGraphParser.cpp.
std::vector<ProgramInterfacePtr> RTT::scripting::ProgramGraphParser::parse | ( | iter_t & | begin, | |
iter_t | end | |||
) |
Tries to parse programs, returns the generated programs on success.
file_parse_exception | The parser found an error. |
std::vector< ProgramInterfacePtr > RTT::ProgramGraphParser::parse | ( | iter_t & | begin, | |
iter_t | end | |||
) |
Tries to parse programs, returns the generated programs on success.
file_parse_exception | The parser found an error. |
Definition at line 622 of file ProgramGraphParser.cpp.
std::vector<ProgramInterfacePtr> RTT::scripting::ProgramGraphParser::parseFunction | ( | iter_t & | begin, | |
iter_t | end | |||
) |
std::vector< ProgramInterfacePtr > RTT::ProgramGraphParser::parseFunction | ( | iter_t & | begin, | |
iter_t | end | |||
) |
Definition at line 677 of file ProgramGraphParser.cpp.
Definition at line 263 of file ProgramGraphParser.cpp.
rule_t& RTT::scripting::ProgramGraphParser::programParser | ( | ) |
Returns a program foo {} parser.
rule_t & RTT::ProgramGraphParser::programParser | ( | ) |
Returns a program foo {} parser.
Definition at line 198 of file ProgramGraphParser.cpp.
ProgramInterfacePtr RTT::scripting::ProgramGraphParser::programParserResult | ( | ) |
Returns the last program parsed by programParser()
ProgramInterfacePtr RTT::ProgramGraphParser::programParserResult | ( | ) |
Returns the last program parsed by programParser()
Definition at line 216 of file ProgramGraphParser.cpp.
Definition at line 281 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenbreakstatement | ( | ) | [private] |
void RTT::ProgramGraphParser::seenbreakstatement | ( | ) | [private] |
Definition at line 410 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seencallfuncargs | ( | ) | [private] |
void RTT::ProgramGraphParser::seencallfuncargs | ( | ) | [private] |
Definition at line 437 of file ProgramGraphParser.cpp.
Definition at line 844 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seencallfuncstatement | ( | ) | [private] |
void RTT::ProgramGraphParser::seencallfuncstatement | ( | ) | [private] |
Definition at line 442 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seencatchpart | ( | ) | [private] |
void RTT::ProgramGraphParser::seencatchpart | ( | ) | [private] |
Definition at line 493 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seencondition | ( | ) | [private] |
void RTT::ProgramGraphParser::seencondition | ( | ) | [private] |
Definition at line 370 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seencontinue | ( | ) | [private] |
void RTT::ProgramGraphParser::seencontinue | ( | ) | [private] |
Definition at line 857 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenemptyforincr | ( | ) | [private] |
void RTT::ProgramGraphParser::seenemptyforincr | ( | ) | [private] |
Definition at line 570 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenforincr | ( | ) | [private] |
void RTT::ProgramGraphParser::seenforincr | ( | ) | [private] |
Definition at line 563 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenforinit | ( | ) | [private] |
void RTT::ProgramGraphParser::seenforinit | ( | ) | [private] |
Definition at line 539 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenforinit_expr | ( | ) | [private] |
void RTT::ProgramGraphParser::seenforinit_expr | ( | ) | [private] |
Definition at line 556 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenforstatement | ( | ) | [private] |
void RTT::ProgramGraphParser::seenforstatement | ( | ) | [private] |
Definition at line 575 of file ProgramGraphParser.cpp.
Definition at line 419 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenfunctionarg | ( | ) | [private] |
void RTT::ProgramGraphParser::seenfunctionarg | ( | ) | [private] |
Definition at line 336 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenfunctionend | ( | ) | [private] |
void RTT::ProgramGraphParser::seenfunctionend | ( | ) | [private] |
Definition at line 345 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenifstatement | ( | ) | [private] |
void RTT::ProgramGraphParser::seenifstatement | ( | ) | [private] |
Definition at line 498 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenprogramend | ( | ) | [private] |
void RTT::ProgramGraphParser::seenprogramend | ( | ) | [private] |
Definition at line 610 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenreturnlabel | ( | ) | [private] |
void RTT::scripting::ProgramGraphParser::seenreturnlabel | ( | ) | [private] |
void RTT::scripting::ProgramGraphParser::seenreturnstatement | ( | ) | [private] |
void RTT::ProgramGraphParser::seenreturnstatement | ( | ) | [private] |
Definition at line 383 of file ProgramGraphParser.cpp.
Definition at line 292 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenreturnvalue | ( | ) | [private] |
void RTT::ProgramGraphParser::seenreturnvalue | ( | ) | [private] |
Definition at line 390 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenstatement | ( | ) | [private] |
void RTT::ProgramGraphParser::seenstatement | ( | ) | [private] |
Definition at line 799 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seentrystatement | ( | ) | [private] |
void RTT::ProgramGraphParser::seentrystatement | ( | ) | [private] |
Definition at line 771 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenvaluechange | ( | ) | [private] |
void RTT::ProgramGraphParser::seenvaluechange | ( | ) | [private] |
Definition at line 822 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenwhilestatement | ( | ) | [private] |
void RTT::ProgramGraphParser::seenwhilestatement | ( | ) | [private] |
Definition at line 521 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::seenyield | ( | ) | [private] |
void RTT::ProgramGraphParser::seenyield | ( | ) | [private] |
Definition at line 815 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::setStack | ( | Service::shared_ptr | st | ) | [private] |
void RTT::ProgramGraphParser::setStack | ( | Service::shared_ptr | st | ) | [private] |
Definition at line 249 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::setup | ( | ) | [private] |
void RTT::ProgramGraphParser::setup | ( | ) | [private] |
Definition at line 86 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::setup2 | ( | ) | [private] |
void RTT::ProgramGraphParser::setup2 | ( | ) | [private] |
Definition at line 63 of file ProgramGraphParser2.cpp.
void RTT::scripting::ProgramGraphParser::skip_eol | ( | ) | [private] |
void RTT::ProgramGraphParser::skip_eol | ( | ) | [private] |
Definition at line 477 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::startcatchpart | ( | ) | [private] |
void RTT::ProgramGraphParser::startcatchpart | ( | ) | [private] |
Definition at line 485 of file ProgramGraphParser.cpp.
void RTT::scripting::ProgramGraphParser::startofprogram | ( | ) | [private] |
void RTT::ProgramGraphParser::startofprogram | ( | ) | [private] |
Definition at line 259 of file ProgramGraphParser.cpp.
rule_t& RTT::scripting::ProgramGraphParser::statementParser | ( | ) |
Parses a single-line statement.
rule_t & RTT::ProgramGraphParser::statementParser | ( | ) |
Parses a single-line statement.
Definition at line 211 of file ProgramGraphParser.cpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 178 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
std::vector< base::DataSourceBase::shared_ptr > RTT::scripting::ProgramGraphParser::callfnargs [private] |
Definition at line 102 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 174 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 175 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
The current subcontext of root where we are working in.
Definition at line 71 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
bool RTT::scripting::ProgramGraphParser::exportf [private] |
Definition at line 187 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 177 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
The current function context where we are working in.
Definition at line 76 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
std::stack< base::ActionInterface * > RTT::scripting::ProgramGraphParser::for_incr_command [private] |
Definition at line 185 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 184 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 100 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
std::vector< ConditionInterface * > RTT::scripting::ProgramGraphParser::implcond_v [private] |
Definition at line 101 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
int RTT::scripting::ProgramGraphParser::ln_offset [private] |
Definition at line 188 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 89 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 105 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 86 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 93 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 83 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
TaskContext * RTT::scripting::ProgramGraphParser::peer [private] |
peer context for events.
Definition at line 81 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 179 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
boost::shared_ptr< FunctionGraphBuilder > RTT::scripting::ProgramGraphParser::program_builder [private] |
Definition at line 181 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
std::vector< FunctionGraphPtr > RTT::scripting::ProgramGraphParser::program_list [private] |
Definition at line 182 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
std::string RTT::scripting::ProgramGraphParser::program_text [private] |
Definition at line 186 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
std::string RTT::scripting::ProgramGraphParser::rettype [private] |
Definition at line 96 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
TaskContext * RTT::scripting::ProgramGraphParser::rootc [private] |
The context given to us by the user to root the parsed programs into.
Definition at line 66 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 107 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 176 of file install/include/rtt/scripting/ProgramGraphParser.hpp.
Definition at line 167 of file install/include/rtt/scripting/ProgramGraphParser.hpp.