Skip to content

Commit c2c2ebb

Browse files
committed
Make model token optional when parsing solver output
1 parent 2947e23 commit c2c2ebb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/main/scala/smtlib/parser/ParserCommandsResponses.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,7 @@ trait ParserCommandsResponses { this: ParserCommon with ParserTerms with ParserC
127127
peekToken match {
128128
case Tokens.SymbolLit("error") => parseErrorResponse
129129
case t => {
130-
nextToken match {
131-
case Tokens.SymbolLit("model") => ()
132-
case t => expected(t, Tokens.SymbolLitKind) //TODO: expected symbol of value "model"
133-
}
130+
if (peekToken == Tokens.SymbolLit("model")) nextToken
134131
val exprs: ListBuffer[SExpr] = new ListBuffer
135132
while(peekToken.kind != Tokens.CParen) {
136133
try {

0 commit comments

Comments
 (0)