summaryrefslogtreecommitdiff
path: root/src/parser/smt2/smt2.cpp
diff options
context:
space:
mode:
authorAndres Noetzli <andres.noetzli@gmail.com>2021-05-14 16:17:54 -0700
committerGitHub <noreply@github.com>2021-05-14 23:17:54 +0000
commitf1a65bef2675495f09603901a7166f20221b0449 (patch)
treea1ee3c1dda6638beddf7e3509a052aa06398793c /src/parser/smt2/smt2.cpp
parent2769173850f78749a870ed051a894317141594fc (diff)
Decouple parser creation from input selection (#6533)
This commit decouples the creation of a `Parser` instance from creating an `Input` and setting the `Input` on the parser. This is a first step in refactoring the parser infrastructure. A future PR will split the parser class into three classes: `Parser`, `ParserState`, and `InputParser`. The `Parser` and `InputParser` classes will be the public-facing classes. The new `Parser` class will have methods to create `InputParser`s from files, streams, and strings. `InputParser`s will have methods to get commands/exprs from a given input. The `ParserState` class will keep track of the state of the parser and will be the internal interface for the parsers. The current `Parser` class is used both publicly and internally, which is messy.
Diffstat (limited to 'src/parser/smt2/smt2.cpp')
-rw-r--r--src/parser/smt2/smt2.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parser/smt2/smt2.cpp b/src/parser/smt2/smt2.cpp
index 2f19d16f0..a91c713d6 100644
--- a/src/parser/smt2/smt2.cpp
+++ b/src/parser/smt2/smt2.cpp
@@ -31,10 +31,9 @@ namespace parser {
Smt2::Smt2(api::Solver* solver,
SymbolManager* sm,
- Input* input,
bool strictMode,
bool parseOnly)
- : Parser(solver, sm, input, strictMode, parseOnly),
+ : Parser(solver, sm, strictMode, parseOnly),
d_logicSet(false),
d_seenSetLogic(false)
{
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback