23 #include <boost/spirit/include/qi.hpp> 193 shared_ptr<STNode>
parseEval(string::const_iterator begin, string::const_iterator end,
const shared_ptr<ParserLogger>& logger)
196 shared_ptr<STNode> root;
203 result = qi::phrase_parse(iterBegin, iterEnd, (qi::lit(
"eval") >>
'(' >> ((
'\"' > eval_ >
'\"') | eval_) >>
')'), chs::space, root);
204 }
catch(qi::expectation_failure<GrammarIterator>&)
209 if(!result || iterBegin != iterEnd)
210 return shared_ptr<STNode>();
Grammar used to parse eval expressions.
shared_ptr< STNode > parseEval(string::const_iterator begin, string::const_iterator end, const shared_ptr< ParserLogger > &logger)
Creates a new eval.
classic::position_iterator2< StringIterator > GrammarIterator
Iterator wrapping the file iterator and to be used in all grammars.
This file is part of alaCarte.