diff interpreter.cpp @ 9:822a2fe5bb51

move command window to separate file and other refactoring
author John W. Eaton <jwe@octave.org>
date Thu, 23 May 2019 12:36:26 -0400
parents 04867eba6428
children 894be158b32d
line wrap: on
line diff
--- a/interpreter.cpp	Thu May 23 11:26:44 2019 -0400
+++ b/interpreter.cpp	Thu May 23 12:36:26 2019 -0400
@@ -6,7 +6,6 @@
 #include "interpreter.h"
 #include "parser.h"
 
-#include "main.h"
 #include "gui-main.h"
 #include "tty-main.h"
 
@@ -18,7 +17,7 @@
     : m_error_handler ([] (const char *msg)
                        { std::cerr << "error: " << msg << std::endl; }),
       m_result_handler ([] (double value)
-                        { std::cout << value << std::endl; })
+                        { std::cout << "ans = " << value << std::endl; })
   {
     if (the_interpreter)
       {