diff libinterp/parse-tree/parse.h @ 16335:bef822a80ffb

if not interactive, bypass readline and read stdin as a file (bug #38520) * parse.h (octave_parser::octave_parser (octave_lexer&)): New constructor. * toplev.cc (main_loop): If not interactive or forced interactive, read from stdin as a file instead of creating interative lexer.
author John W. Eaton <jwe@octave.org>
date Tue, 19 Mar 2013 17:06:27 -0400
parents 0925d1f6875e
children 2ed5bc680c71 de91b1621260
line wrap: on
line diff
--- a/libinterp/parse-tree/parse.h	Tue Mar 19 17:06:22 2013 -0400
+++ b/libinterp/parse-tree/parse.h	Tue Mar 19 17:06:27 2013 -0400
@@ -409,6 +409,10 @@
     : octave_base_parser (*(new octave_lexer (eval_string)))
   { }
 
+  octave_parser (octave_lexer& lxr)
+    : octave_base_parser (lxr)
+  { }
+
   ~octave_parser (void) { }
 
   int run (void);