about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
-rw-r--r--lib/SMT/parser.cpp15
-rw-r--r--lib/SMT/parser_temp.h9
2 files changed, 11 insertions, 13 deletions
diff --git a/lib/SMT/parser.cpp b/lib/SMT/parser.cpp
index c960c16d..8981179e 100644
--- a/lib/SMT/parser.cpp
+++ b/lib/SMT/parser.cpp
@@ -29,6 +29,7 @@ using namespace std;
 
 // The communication entry points of the actual parsers
 
+
 // for smtlib language (smtlib.y and smtlib.lex)
 extern int smtlibparse(); 
 extern void *smtlib_createBuffer(int);
@@ -67,11 +68,9 @@ namespace CVC3 {
   };
 
   // Constructors
-  Parser::Parser(ValidityChecker* vc, InputLanguage lang,
-		 bool interactive,
+  Parser::Parser(InputLanguage lang, bool interactive, 
 		 const std::string& fileName)
     : d_data(new ParserData) {
-    d_data->temp.vc = vc;
     d_data->lang = lang;
     if(fileName == "") {
       // Use std::cin
@@ -92,10 +91,8 @@ namespace CVC3 {
     initParser();
   }
 
-  Parser::Parser(ValidityChecker* vc, InputLanguage lang, std::istream& is,
-		 bool interactive)
+  Parser::Parser(InputLanguage lang, std::istream& is, bool interactive)
     : d_data(new ParserData) {
-    d_data->temp.vc = vc;
     d_data->lang = lang;
     d_data->useName = false;
     d_data->temp.is = &is;
@@ -136,7 +133,7 @@ namespace CVC3 {
 
   Expr Parser::next() {
     // If no more commands are available, return a Null Expr
-    if(d_data->temp.done) return Expr();
+    if(d_data->temp.done) return NULL;//Expr();
     // Set the global var so the parser uses the right stream and EM
     parserTemp = &(d_data->temp);
     // Switch to our buffer, in case there are multiple instances of
@@ -159,7 +156,7 @@ namespace CVC3 {
     } catch(Exception* e) {
       cerr << d_data->temp.fileName << ":" << d_data->temp.lineNum
 	   << ": " << e << endl;
-      return Expr();
+      return NULL;//Expr();
     }
     return d_data->temp.expr;
   }
@@ -173,7 +170,7 @@ namespace CVC3 {
 
   void Parser::reset()
   {
-    d_data->temp.expr = Expr();
+    d_data->temp.expr = NULL;//Expr();
   }
   
 
diff --git a/lib/SMT/parser_temp.h b/lib/SMT/parser_temp.h
index 2c6f6b38..ad6bf5f1 100644
--- a/lib/SMT/parser_temp.h
+++ b/lib/SMT/parser_temp.h
@@ -23,12 +23,14 @@
 #ifndef _cvc3__parser_temp_h_
 #define _cvc3__parser_temp_h_
 
-#include "expr.h"
+//#include "expr.h"
+#define Expr void*
 #include "exception.h"
 
-namespace CVC3 {
+#include <sstream>
+#include <vector>
 
-  class ValidityChecker;
+namespace CVC3 {
 
   class ParserTemp {
   private:
@@ -41,7 +43,6 @@ namespace CVC3 {
     // The currently used prompt
     std::string prompt;
   public:
-    ValidityChecker* vc;
     std::istream* is;
     // The current input line
     int lineNum;