#include <ScriptParser.hpp>
Public Member Functions | |
void | parse (iter_t &begin, iter_t end) |
base::DataSourceBase::shared_ptr | parseExcerpt (iter_t &begin, iter_t end) |
ScriptParser (iter_t &positer, TaskContext *tc, ExecutionEngine *caller) | |
~ScriptParser () | |
Private Member Functions | |
void | clear () |
void | seenfunction () |
void | seenprogram () |
void | seenstatemachine () |
void | seenstatement () |
Private Attributes | |
ExecutionEngine * | caller |
CommonParser * | commonparser |
TaskContext * | context |
rule_t | function |
int | ln_offset |
our_pos_iter_t & | mpositer |
rule_t | production |
rule_t | program |
std::string | program_text |
ProgramGraphParser * | programparser |
our_pos_iter_t | saveStartPos |
rule_t | statemachine |
rule_t | statement |
StateGraphParser * | stateparser |
Service::shared_ptr | storage |
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 42 of file ScriptParser.cpp.
Definition at line 214 of file ScriptParser.cpp.
void RTT::ScriptParser::clear | ( | ) | [private] |
Definition at line 222 of file ScriptParser.cpp.
void RTT::ScriptParser::parse | ( | iter_t & | begin, |
iter_t | end | ||
) |
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 160 of file ScriptParser.cpp.
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 |
void RTT::ScriptParser::seenfunction | ( | ) | [private] |
Definition at line 131 of file ScriptParser.cpp.
void RTT::ScriptParser::seenprogram | ( | ) | [private] |
Definition at line 107 of file ScriptParser.cpp.
void RTT::ScriptParser::seenstatemachine | ( | ) | [private] |
Definition at line 138 of file ScriptParser.cpp.
void RTT::ScriptParser::seenstatement | ( | ) | [private] |
Definition at line 77 of file ScriptParser.cpp.
Definition at line 26 of file ScriptParser.hpp.
Definition at line 41 of file ScriptParser.hpp.
TaskContext* RTT::scripting::ScriptParser::context [private] |
Definition at line 24 of file ScriptParser.hpp.
rule_t RTT::scripting::ScriptParser::function [private] |
Definition at line 38 of file ScriptParser.hpp.
int RTT::scripting::ScriptParser::ln_offset [private] |
Definition at line 32 of file ScriptParser.hpp.
our_pos_iter_t& RTT::scripting::ScriptParser::mpositer [private] |
Definition at line 29 of file ScriptParser.hpp.
rule_t RTT::scripting::ScriptParser::production [private] |
Definition at line 35 of file ScriptParser.hpp.
rule_t RTT::scripting::ScriptParser::program [private] |
Definition at line 37 of file ScriptParser.hpp.
std::string RTT::scripting::ScriptParser::program_text [private] |
Definition at line 33 of file ScriptParser.hpp.
Definition at line 43 of file ScriptParser.hpp.
our_pos_iter_t RTT::scripting::ScriptParser::saveStartPos [private] |
Definition at line 30 of file ScriptParser.hpp.
rule_t RTT::scripting::ScriptParser::statemachine [private] |
Definition at line 39 of file ScriptParser.hpp.
rule_t RTT::scripting::ScriptParser::statement [private] |
Definition at line 36 of file ScriptParser.hpp.
Definition at line 42 of file ScriptParser.hpp.
Definition at line 28 of file ScriptParser.hpp.