Orocos Real-Time Toolkit  2.6.0
Public Member Functions
RTT::scripting::StateGraphParser Class Reference

This is not a parser in the Boost.spirit sense of the word, it's just a class used to hold the parser and semantic actions. More...

#include <rtt/scripting/StateGraphParser.hpp>

List of all members.

Public Member Functions

 StateGraphParser (iter_t &positer, TaskContext *tc, ExecutionEngine *caller, CommonParser *cp)
std::vector
< ParsedStateMachinePtr > 
parse (iter_t &begin, iter_t end)
rule_t & parser ()
 Returns the top-level parser for state machines.
ParsedStateMachinePtr getParserResult ()
 Returns the last state machine instantiation of parser() or null if no instantiations were seen.
void storeOffset ()
 Stores the current position in the input stream (iterator received from the constructor) in order to be able to extract the statemachine's text from the input stream.

Detailed Description

This is not a parser in the Boost.spirit sense of the word, it's just a class used to hold the parser and semantic actions.

This class does the actual work. It generates a Finite State Graph, by constructing the State nodes. We just go over the code one single time, and construct the FSM as we go. For every statement, we construct a new GraphNode, and fill it up as we get the information we need.

Definition at line 61 of file StateGraphParser.hpp.


Constructor & Destructor Documentation

RTT::StateGraphParser::StateGraphParser ( iter_t &  positer,
TaskContext tc,
ExecutionEngine caller,
CommonParser cp 
)

Member Function Documentation

Returns the top-level parser for state machines.

It parses one state machine definition or one state machine instantiation.

See also:
storeOffset()

Definition at line 317 of file StateGraphParser.cpp.

Referenced by RTT::scripting::ScriptParser::ScriptParser().

Stores the current position in the input stream (iterator received from the constructor) in order to be able to extract the statemachine's text from the input stream.

You need to call this function once before using the parser().

Definition at line 869 of file StateGraphParser.cpp.

Referenced by RTT::scripting::ScriptParser::parse(), RTT::scripting::ScriptParser::ScriptParser(), and StateGraphParser().


The documentation for this class was generated from the following files: