Fix ECHO command in CVC language parser to not output quotation marks
authorMorgan Deters <mdeters@cs.nyu.edu>
Fri, 15 Feb 2013 16:48:24 +0000 (11:48 -0500)
committerMorgan Deters <mdeters@cs.nyu.edu>
Fri, 15 Feb 2013 17:37:22 +0000 (12:37 -0500)
src/parser/cvc/Cvc.g

index d0fe9036bb86b5d52ca4de0a15e98e90e447f2bd..1af4799beb779bd0f095a1bc7b627e23bc36f868 100644 (file)
@@ -742,10 +742,7 @@ mainCommand[CVC4::Command*& cmd]
 
   | ECHO_TOK
     ( simpleSymbolicExpr[sexpr]
-      { std::stringstream ss;
-        ss << sexpr;
-        cmd = new EchoCommand(ss.str());
-      }
+      { cmd = new EchoCommand(sexpr.getValue()); }
     | { cmd = new EchoCommand(); }
     )