From 6970ed001a5704b1b79bb3775adce70f8c3b9778 Mon Sep 17 00:00:00 2001 From: Morgan Deters Date: Mon, 6 Oct 2014 14:47:54 -0400 Subject: [PATCH] Clear out decls/defs with RESET command. --- src/parser/cvc/Cvc.g | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/parser/cvc/Cvc.g b/src/parser/cvc/Cvc.g index 81e022c82..151e2ecb6 100644 --- a/src/parser/cvc/Cvc.g +++ b/src/parser/cvc/Cvc.g @@ -697,7 +697,9 @@ mainCommand[CVC4::Command*& cmd] { UNSUPPORTED("POPTO_SCOPE command"); } | RESET_TOK - { cmd = new ResetCommand(); } + { cmd = new ResetCommand(); + PARSER_STATE->reset(); + } // Datatypes can be mututally-recursive if they're in the same // definition block, separated by a comma. So we parse everything -- 2.30.2