|
|
@ -76,8 +76,7 @@ struct PrctlParser::PrctlGrammar : qi::grammar<Iterator, std::shared_ptr<storm:: |
|
|
|
// (Propositions, probabilistic/reward formulas, and state formulas in brackets)
|
|
|
|
atomicStateFormula %= probabilisticBoundOperator | rewardBoundOperator | atomicProposition | qi::lit("(") >> stateFormula >> qi::lit(")") | qi::lit("[") >> stateFormula >> qi::lit("]"); |
|
|
|
atomicStateFormula.name("atomic state formula"); |
|
|
|
atomicProposition = (freeIdentifierName)[qi::_val = |
|
|
|
MAKE(prctl::Ap<double>, qi::_1)]; |
|
|
|
atomicProposition = (freeIdentifierName)[qi::_val = MAKE(prctl::Ap<double>, qi::_1)] | (qi::lit("\"") > (freeIdentifierName)[qi::_val = MAKE(prctl::Ap<double>, qi::_1)] > qi::lit("\"")); |
|
|
|
atomicProposition.name("atomic proposition"); |
|
|
|
probabilisticBoundOperator = ((qi::lit("P") >> comparisonType > qi::double_ > pathFormula)[qi::_val = |
|
|
|
MAKE(prctl::ProbabilisticBoundOperator<double>, qi::_1, qi::_2, qi::_3)]); |