Browse Source

Allowing to write 'R=? [MP]' instead of 'R=? [LRA]'

tempestpy_adaptions
TimQu 7 years ago
parent
commit
e7d273354c
  1. 2
      src/storm/parser/FormulaParserGrammar.cpp

2
src/storm/parser/FormulaParserGrammar.cpp

@ -20,7 +20,7 @@ namespace storm {
// Set the identifier mapping to actually generate expressions. // Set the identifier mapping to actually generate expressions.
expressionParser.setIdentifierMapping(&identifiers_); expressionParser.setIdentifierMapping(&identifiers_);
longRunAverageRewardFormula = (qi::lit("LRA") | qi::lit("S"))[qi::_val = phoenix::bind(&FormulaParserGrammar::createLongRunAverageRewardFormula, phoenix::ref(*this))];
longRunAverageRewardFormula = (qi::lit("LRA") | qi::lit("S") | qi::lit("MP"))[qi::_val = phoenix::bind(&FormulaParserGrammar::createLongRunAverageRewardFormula, phoenix::ref(*this))];
longRunAverageRewardFormula.name("long run average reward formula"); longRunAverageRewardFormula.name("long run average reward formula");
instantaneousRewardFormula = (qi::lit("I=") > expressionParser)[qi::_val = phoenix::bind(&FormulaParserGrammar::createInstantaneousRewardFormula, phoenix::ref(*this), qi::_1)]; instantaneousRewardFormula = (qi::lit("I=") > expressionParser)[qi::_val = phoenix::bind(&FormulaParserGrammar::createInstantaneousRewardFormula, phoenix::ref(*this), qi::_1)];

Loading…
Cancel
Save