summaryrefslogtreecommitdiff
path: root/src/parser/parser.h
diff options
context:
space:
mode:
authorAndrew Reynolds <andrew.j.reynolds@gmail.com>2020-03-06 15:55:21 -0600
committerGitHub <noreply@github.com>2020-03-06 15:55:21 -0600
commit75502e8c943d747df6c9d10a237238e8443d6c38 (patch)
tree75cccccebb1819680f43cc5a9c16194e511a4ac4 /src/parser/parser.h
parent89337334236176bff2d561c42b9b55ab9d91bd62 (diff)
Simplify DatatypeDeclarationCommand command (#3928)
The new API does not use inheritence for Sorts. The current DatatypeDeclarationCommand uses DatatypeType, which inherits from Type. This commit simplifies the class DatatypeType -> Type and updates the necessary code (e.g. in the printers). Notice we are not yet converting commands Type -> Sort here. It also makes the main call for constructing datatypes in the parser from DatatypeType -> api::Sort. This is in preparation for converting Expr-level Datatype to Term-level DatatypeDecl in the parsers.
Diffstat (limited to 'src/parser/parser.h')
-rw-r--r--src/parser/parser.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parser/parser.h b/src/parser/parser.h
index 3237c2893..c7efcbacb 100644
--- a/src/parser/parser.h
+++ b/src/parser/parser.h
@@ -604,7 +604,7 @@ public:
* printed out as a definition in models or not
* (see enum in expr_manager_template.h).
*/
- std::vector<DatatypeType> mkMutualDatatypeTypes(
+ std::vector<api::Sort> mkMutualDatatypeTypes(
std::vector<Datatype>& datatypes,
bool doOverload = false,
uint32_t flags = ExprManager::DATATYPE_FLAG_NONE);
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback