diff options
Diffstat (limited to 'src/parser/cvc/Cvc.g')
-rw-r--r-- | src/parser/cvc/Cvc.g | 30 |
1 files changed, 5 insertions, 25 deletions
diff --git a/src/parser/cvc/Cvc.g b/src/parser/cvc/Cvc.g index a137cece3..efdd328a4 100644 --- a/src/parser/cvc/Cvc.g +++ b/src/parser/cvc/Cvc.g @@ -539,7 +539,6 @@ Expr addNots(ExprManager* em, size_t n, Expr e) { #include "parser/antlr_tracing.h" #include "parser/parser.h" #include "smt/command.h" -#include "util/subrange_bound.h" namespace CVC4 { class Expr; @@ -563,18 +562,6 @@ namespace CVC4 { * Just exists to give us the void* construction that * ANTLR requires. */ - class mySubrangeBound : public CVC4::SubrangeBound { - public: - mySubrangeBound() : CVC4::SubrangeBound() {} - mySubrangeBound(void*) : CVC4::SubrangeBound() {} - mySubrangeBound(const Integer& i) : CVC4::SubrangeBound(i) {} - mySubrangeBound(const SubrangeBound& b) : CVC4::SubrangeBound(b) {} - };/* class mySubrangeBound */ - - /** - * Just exists to give us the void* construction that - * ANTLR requires. - */ struct myExpr : public CVC4::Expr { myExpr() : CVC4::Expr() {} myExpr(void*) : CVC4::Expr() {} @@ -1284,16 +1271,9 @@ restrictedTypePossiblyFunctionLHS[CVC4::Type& t, } /* subrange types */ - | LBRACKET k1=bound DOTDOT k2=bound RBRACKET - { if(k1.hasBound() && k2.hasBound() && - k1.getBound() > k2.getBound()) { - std::stringstream ss; - ss << "Subrange [" << k1.getBound() << ".." << k2.getBound() - << "] inappropriate: range must be nonempty!"; - PARSER_STATE->parseError(ss.str()); - } + | LBRACKET bound DOTDOT bound RBRACKET + { PARSER_STATE->unimplementedFeature("subrange typing not supported in this release"); - //t = EXPR_MANAGER->mkSubrangeType(SubrangeBounds(k1, k2)); } /* tuple types / old-style function types */ @@ -1348,9 +1328,9 @@ parameterization[CVC4::parser::DeclarationCheck check, ( COMMA restrictedType[t,check] { Debug("parser-param") << "t = " << t << std::endl; params.push_back( t ); } )* RBRACKET ; -bound returns [CVC4::parser::cvc::mySubrangeBound bound] - : UNDERSCORE { $bound = SubrangeBound(); } - | k=integer { $bound = SubrangeBound(k.getNumerator()); } +bound + : UNDERSCORE + | integer ; typeLetDecl[CVC4::parser::DeclarationCheck check] |