42 #include <boost/bind.hpp> 43 #include <boost/lambda/lambda.hpp> 47 #pragma optimize( "", off) 53 using namespace boost;
54 using namespace detail;
57 boost::spirit::classic::assertion<std::string> expect_ifblock(
"Expected a statement (or { block } ).");
58 boost::spirit::classic::assertion<std::string> expect_then(
"Wrongly formatted \"if ... then\" clause.");
59 boost::spirit::classic::assertion<std::string> expect_elseblock(
"Expected a statement (or {block} ) after else.");
60 boost::spirit::classic::assertion<std::string> expect_ident(
"Expected a valid identifier.");
84 forstatement = (
keyword_p(
"for") >> openbrace
88 >> condition >> semicolon >> !
keyword_p(
"set")
97 >> !(
keyword_p(
"else") >> expect_elseblock(ifblock) )
102 ifblock = ( ch_p(
'{') >> *line >> closecurly ) | ( statement >> !commonparser.notassertingeos );
void seenreturnstatement()
void seenwhilestatement()
void seencallfuncstatement()
void seenfuncidentifier(iter_t begin, iter_t end)
Contains TaskContext, Activity, OperationCaller, Operation, Property, InputPort, OutputPort, Attribute.
void seenbreakstatement()