Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
16334:06aa4c0f2018 | 16335:bef822a80ffb |
---|---|
407 | 407 |
408 octave_parser (const std::string& eval_string) | 408 octave_parser (const std::string& eval_string) |
409 : octave_base_parser (*(new octave_lexer (eval_string))) | 409 : octave_base_parser (*(new octave_lexer (eval_string))) |
410 { } | 410 { } |
411 | 411 |
412 octave_parser (octave_lexer& lxr) | |
413 : octave_base_parser (lxr) | |
414 { } | |
415 | |
412 ~octave_parser (void) { } | 416 ~octave_parser (void) { } |
413 | 417 |
414 int run (void); | 418 int run (void); |
415 | 419 |
416 private: | 420 private: |