diff options
author | Andrew Reynolds <andrew.j.reynolds@gmail.com> | 2020-02-24 15:37:48 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 15:37:48 -0600 |
commit | 9fbe415992986d33d09b3b9e5049ebc22d20790a (patch) | |
tree | 986c6a139e2de4d324aa470b029af88cbcda301f /src/parser/cvc | |
parent | c4f2ca4c1931f91a9647f0daa032ee9417f1b382 (diff) |
Convert parser input interface to api::Term (#3809)
Diffstat (limited to 'src/parser/cvc')
-rw-r--r-- | src/parser/cvc/cvc_input.cpp | 5 | ||||
-rw-r--r-- | src/parser/cvc/cvc_input.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/parser/cvc/cvc_input.cpp b/src/parser/cvc/cvc_input.cpp index 1de624f49..8c7b34410 100644 --- a/src/parser/cvc/cvc_input.cpp +++ b/src/parser/cvc/cvc_input.cpp @@ -61,8 +61,9 @@ Command* CvcInput::parseCommand() { return d_pCvcParser->parseCommand(d_pCvcParser); } -Expr CvcInput::parseExpr() { - return d_pCvcParser->parseExpr(d_pCvcParser); +api::Term CvcInput::parseExpr() +{ + return api::Term(d_pCvcParser->parseExpr(d_pCvcParser)); } /* diff --git a/src/parser/cvc/cvc_input.h b/src/parser/cvc/cvc_input.h index 098efd580..50be82903 100644 --- a/src/parser/cvc/cvc_input.h +++ b/src/parser/cvc/cvc_input.h @@ -57,12 +57,12 @@ class CvcInput : public AntlrInput { */ Command* parseCommand() override; - /** Parse an expression from the input. Returns a null <code>Expr</code> + /** Parse an expression from the input. Returns a null <code>api::Term</code> * if there is no expression there to parse. * * @throws ParserException if an error is encountered during parsing. */ - Expr parseExpr() override; + api::Term parseExpr() override; private: /** Initialize the class. Called from the constructors once the input stream |