From: Christopher L. Conway Date: Wed, 28 Jul 2010 23:04:44 +0000 (+0000) Subject: Adding TypeCheckingException to throws clause in SMT parsers X-Git-Tag: cvc5-1.0.0~8901 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a93313ba33af5a283115515f513979b7d2cd4732;p=cvc5.git Adding TypeCheckingException to throws clause in SMT parsers --- diff --git a/src/parser/smt/smt_input.cpp b/src/parser/smt/smt_input.cpp index 42843bac2..d062683d3 100644 --- a/src/parser/smt/smt_input.cpp +++ b/src/parser/smt/smt_input.cpp @@ -60,12 +60,12 @@ SmtInput::~SmtInput() { } Command* SmtInput::parseCommand() - throw (ParserException, AssertionException) { + throw (ParserException, TypeCheckingException, AssertionException) { return d_pSmtParser->parseCommand(d_pSmtParser); } Expr SmtInput::parseExpr() - throw (ParserException, AssertionException) { + throw (ParserException, TypeCheckingException, AssertionException) { return d_pSmtParser->parseExpr(d_pSmtParser); } diff --git a/src/parser/smt/smt_input.h b/src/parser/smt/smt_input.h index f3f461915..dda4d6348 100644 --- a/src/parser/smt/smt_input.h +++ b/src/parser/smt/smt_input.h @@ -72,7 +72,8 @@ protected: * * @throws ParserException if an error is encountered during parsing. */ - Command* parseCommand() throw(ParserException, AssertionException); + Command* parseCommand() + throw(ParserException, TypeCheckingException, AssertionException); /** * Parse an expression from the input. Returns a null @@ -80,7 +81,8 @@ protected: * * @throws ParserException if an error is encountered during parsing. */ - Expr parseExpr() throw(ParserException, AssertionException); + Expr parseExpr() + throw(ParserException, TypeCheckingException, AssertionException); private: diff --git a/src/parser/smt2/smt2_input.cpp b/src/parser/smt2/smt2_input.cpp index e0bcadd61..cbb9c57a3 100644 --- a/src/parser/smt2/smt2_input.cpp +++ b/src/parser/smt2/smt2_input.cpp @@ -61,12 +61,12 @@ Smt2Input::~Smt2Input() { } Command* Smt2Input::parseCommand() - throw (ParserException, AssertionException) { + throw (ParserException, TypeCheckingException, AssertionException) { return d_pSmt2Parser->parseCommand(d_pSmt2Parser); } Expr Smt2Input::parseExpr() - throw (ParserException, AssertionException) { + throw (ParserException, TypeCheckingException, AssertionException) { return d_pSmt2Parser->parseExpr(d_pSmt2Parser); } diff --git a/src/parser/smt2/smt2_input.h b/src/parser/smt2/smt2_input.h index 45986948a..320f5ab75 100644 --- a/src/parser/smt2/smt2_input.h +++ b/src/parser/smt2/smt2_input.h @@ -81,7 +81,8 @@ protected: * * @throws ParserException if an error is encountered during parsing. */ - Command* parseCommand() throw(ParserException, AssertionException); + Command* parseCommand() + throw(ParserException, TypeCheckingException, AssertionException); /** * Parse an expression from the input. Returns a null @@ -89,7 +90,8 @@ protected: * * @throws ParserException if an error is encountered during parsing. */ - Expr parseExpr() throw(ParserException, AssertionException); + Expr parseExpr() + throw(ParserException, TypeCheckingException, AssertionException); };/* class Smt2Input */