Mercurial > hg > octave-nkf
diff src/parse.h @ 3021:18d64612e67a
[project @ 1997-06-03 22:18:56 by jwe]
author | jwe |
---|---|
date | Tue, 03 Jun 1997 22:21:29 +0000 |
parents | 8bb31a2b480b |
children | 8ce6fed79320 |
line wrap: on
line diff
--- a/src/parse.h +++ b/src/parse.h @@ -23,6 +23,8 @@ #if !defined (octave_parse_h) #define octave_parse_h 1 +#include <cstdio> + #include <string> #include "SLStack.h" @@ -34,7 +36,10 @@ class tree; class tree_matrix; class tree_identifier; +class symbol_record; class symbol_table; +class octave_value; +class octave_value_list; // Temporary symbol table pointer used to cope with bogus function syntax. extern symbol_table *tmp_local_sym_tab; @@ -51,6 +56,37 @@ // Buffer for help text snagged from function files. extern string help_buf; +// TRUE means we are using readline. +extern bool line_editing; + +// TRUE means we printed messages about reading startup files. +extern bool reading_startup_message_printed; + +// TRUE means input is coming from startup file. +extern bool input_from_startup_file; + +// TRUE means that input is coming from a file that was named on +// the command line. +extern bool input_from_command_line_file; + +extern void +parse_and_execute (FILE *f); + +extern void +parse_and_execute (const string& s, bool verbose = false, + const char *warn_for = 0); + +extern string get_help_from_file (const string& f); + +extern bool +load_fcn_from_file (symbol_record *sym_rec, bool exec_script); + +extern octave_value_list +feval (const octave_value_list& args, int nargout); + +extern octave_value +eval_string (const string&, bool silent, int& parse_status); + #endif /*