RTT::scripting::ScriptParser Class Reference

#include <ScriptParser.hpp>

List of all members.

Public Member Functions

void parse (iter_t &begin, iter_t end)
void parse (iter_t &begin, iter_t end)
base::DataSourceBase::shared_ptr parseExcerpt (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 (iter_t &positer, TaskContext *tc, ExecutionEngine *caller)
 ~ScriptParser ()
 ~ScriptParser ()

Private Member Functions

void clear ()
void clear ()
void seenfunction ()
void seenfunction ()
void seenprogram ()
void seenprogram ()
void seenstatemachine ()
void seenstatemachine ()
void seenstatement ()
void seenstatement ()

Private Attributes

ExecutionEnginecaller
CommonParsercommonparser
TaskContextcontext
rule_t function
int ln_offset
our_pos_iter_tmpositer
rule_t production
rule_t program
std::string program_text
ProgramGraphParserprogramparser
our_pos_iter_t saveStartPos
rule_t statemachine
rule_t statement
StateGraphParserstateparser
Service::shared_ptr storage

Detailed Description

Parsers and executes any RTT script you throw at it.

Definition at line 21 of file install/include/rtt/scripting/ScriptParser.hpp.


Constructor & Destructor Documentation

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 41 of file ScriptParser.cpp.

RTT::ScriptParser::~ScriptParser (  ) 

Definition at line 209 of file ScriptParser.cpp.

RTT::scripting::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.

RTT::scripting::ScriptParser::~ScriptParser (  ) 

Member Function Documentation

void RTT::scripting::ScriptParser::clear (  )  [private]
void RTT::ScriptParser::clear (  )  [private]

Definition at line 217 of file ScriptParser.cpp.

void RTT::scripting::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.

Exceptions:
parse_exception or one of its variants in case of wrong input
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.

Exceptions:
parse_exception or one of its variants in case of wrong input

Definition at line 159 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.

Returns:
a valid datasource which contains the result of the last statement parsed. It does not need to be evaluate()'ed anymore to read its contents. In case the input is incomplete, a null data source is returned.
Exceptions:
parse_exception or one of its variants in case of wrong input
base::DataSourceBase::shared_ptr RTT::scripting::ScriptParser::parseExcerpt ( iter_t begin,
iter_t  end 
)

Parses and executes a (possibly) incomplete script.

Returns:
a valid datasource which contains the result of the last statement parsed. It does not need to be evaluate()'ed anymore to read its contents. In case the input is incomplete, a null data source is returned.
Exceptions:
parse_exception or one of its variants in case of wrong input
void RTT::scripting::ScriptParser::seenfunction (  )  [private]
void RTT::ScriptParser::seenfunction (  )  [private]

Definition at line 130 of file ScriptParser.cpp.

void RTT::scripting::ScriptParser::seenprogram (  )  [private]
void RTT::ScriptParser::seenprogram (  )  [private]

Definition at line 106 of file ScriptParser.cpp.

void RTT::scripting::ScriptParser::seenstatemachine (  )  [private]
void RTT::ScriptParser::seenstatemachine (  )  [private]

Definition at line 137 of file ScriptParser.cpp.

void RTT::scripting::ScriptParser::seenstatement (  )  [private]
void RTT::ScriptParser::seenstatement (  )  [private]

Definition at line 76 of file ScriptParser.cpp.


Member Data Documentation


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


rtt
Author(s): RTT Developers
autogenerated on Fri Jan 11 09:50:16 2013