Clear out decls/defs with RESET command.
authorMorgan Deters <mdeters@cs.nyu.edu>
Mon, 6 Oct 2014 18:47:54 +0000 (14:47 -0400)
committerMorgan Deters <mdeters@cs.nyu.edu>
Mon, 6 Oct 2014 18:47:54 +0000 (14:47 -0400)
src/parser/cvc/Cvc.g

index 81e022c8275dfe891658755e7c1557e5717e1007..151e2ecb61b7c5b0426316ae3c77fb72238175f6 100644 (file)
@@ -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