Browse Source

fixed issue when parsing formula files

tempestpy_adaptions
dehnert 8 years ago
parent
commit
5bbf4ab319
  1. 5
      src/storm/parser/FormulaParserGrammar.cpp

5
src/storm/parser/FormulaParserGrammar.cpp

@ -133,7 +133,10 @@ namespace storm {
#pragma clang diagnostic pop #pragma clang diagnostic pop
start = ((qi::eps > filterProperty[phoenix::push_back(qi::_val, qi::_1)] | qi::eps(phoenix::bind(&FormulaParserGrammar::areConstantDefinitionsAllowed, phoenix::ref(*this))) >> constantDefinition | qi::eps) % +(qi::char_("\n;"))) >> qi::skip(boost::spirit::ascii::space | qi::lit("//") >> *(qi::char_ - (qi::eol | qi::eoi)))[qi::eps] >> qi::eoi;
start = (qi::eps >> filterProperty[phoenix::push_back(qi::_val, qi::_1)]
| qi::eps(phoenix::bind(&FormulaParserGrammar::areConstantDefinitionsAllowed, phoenix::ref(*this))) >> constantDefinition
| qi::eps)
% +(qi::char_("\n;")) >> qi::skip(boost::spirit::ascii::space | qi::lit("//") >> *(qi::char_ - (qi::eol | qi::eoi)))[qi::eps] >> qi::eoi;
start.name("start"); start.name("start");
// Enable the following lines to print debug output for most the rules. // Enable the following lines to print debug output for most the rules.

Loading…
Cancel
Save