You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.2 KiB
37 lines
1.2 KiB
/*
|
|
* File: ConstIntegerExpressionGrammar.h
|
|
* Author: nafur
|
|
*
|
|
* Created on April 10, 2013, 6:02 PM
|
|
*/
|
|
|
|
#ifndef CONSTINTEGEREXPRESSIONGRAMMAR_H
|
|
#define CONSTINTEGEREXPRESSIONGRAMMAR_H
|
|
|
|
#include "Includes.h"
|
|
#include "VariableState.h"
|
|
#include "IdentifierGrammars.h"
|
|
|
|
namespace storm {
|
|
namespace parser {
|
|
namespace prism {
|
|
|
|
class ConstIntegerExpressionGrammar : public qi::grammar<Iterator, std::shared_ptr<BaseExpression>(), Skipper, Unused>, public BaseGrammar<ConstIntegerExpressionGrammar> {
|
|
public:
|
|
ConstIntegerExpressionGrammar(std::shared_ptr<VariableState>& state);
|
|
|
|
private:
|
|
qi::rule<Iterator, std::shared_ptr<BaseExpression>(), Skipper, Unused> constantIntegerExpression;
|
|
qi::rule<Iterator, std::shared_ptr<BaseExpression>(), qi::locals<bool>, Skipper> constantIntegerPlusExpression;
|
|
qi::rule<Iterator, std::shared_ptr<BaseExpression>(), Skipper> constantIntegerMultExpression;
|
|
qi::rule<Iterator, std::shared_ptr<BaseExpression>(), Skipper> constantAtomicIntegerExpression;
|
|
qi::rule<Iterator, std::shared_ptr<BaseExpression>(), Skipper> integerConstantExpression;
|
|
qi::rule<Iterator, std::shared_ptr<BaseExpression>(), Skipper> integerLiteralExpression;
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif /* CONSTINTEGEREXPRESSIONGRAMMAR_H */
|