A Parser for Orocos Program Scripts. More...
#include <rtt/scripting/ProgramGraphParser.hpp>
Public Member Functions | |
ProgramGraphParser (iter_t &positer, TaskContext *, CommonParser &) | |
std::vector< ProgramInterfacePtr > | parse (iter_t &begin, iter_t end) |
Tries to parse programs, returns the generated programs on success. | |
std::vector< ProgramInterfacePtr > | parseFunction (iter_t &begin, iter_t end) |
void | initBodyParser (const std::string &name, OperationInterface *stck, int offset) |
rule_t & | bodyParser () |
ProgramInterfacePtr | bodyParserResult () |
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 68 of file ProgramGraphParser.hpp.
std::vector<ProgramInterfacePtr> RTT::detail::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. |