Browse Source

Allow DoubleExpressions to use integer constants

tempestpy_adaptions
gereon 12 years ago
parent
commit
6ad0c7041e
  1. 2
      src/parser/PrismParser/ConstDoubleExpressionGrammar.cpp

2
src/parser/PrismParser/ConstDoubleExpressionGrammar.cpp

@ -40,7 +40,7 @@ ConstDoubleExpressionGrammar::ConstDoubleExpressionGrammar(std::shared_ptr<Varia
constantAtomicDoubleExpression %= (qi::lit("(") >> constantDoubleExpression >> qi::lit(")") | doubleConstantExpression);
constantAtomicDoubleExpression.name("constant double expression");
doubleConstantExpression %= (this->state->doubleConstants_ | doubleLiteralExpression);
doubleConstantExpression %= (this->state->doubleConstants_ | this->state->integerConstants_ | doubleLiteralExpression);
doubleConstantExpression.name("double constant or literal");
doubleLiteralExpression = qi::double_[qi::_val = phoenix::bind(&ConstDoubleExpressionGrammar::createLiteral, this, qi::_1)];

Loading…
Cancel
Save