diff libinterp/parse-tree/parse.h @ 16138:284e2ca86ef7

execute parser using member function of octave_parser class * parse.h, oct-parse.yy (octave_parser::run): New function. (octave_parse_input): Delete. * toplev.cc (main_loop): Call octave_parser::run for curr_parser instead of calling octave_parse_input. * input.cc (get_debug_input): Likewise. * oct-parse.yy (eval_string, parse_fcn_file): Likewise.
author John W. Eaton <jwe@octave.org>
date Wed, 27 Feb 2013 13:07:38 -0500
parents ed36d5543b27
children 2fd39ab12209
line wrap: on
line diff
--- a/libinterp/parse-tree/parse.h
+++ b/libinterp/parse-tree/parse.h
@@ -131,8 +131,6 @@
 
 extern OCTINTERP_API void cleanup_statement_list (tree_statement_list **lst);
 
-extern OCTINTERP_API int octave_parse_input (void);
-
 class
 octave_parser
 {
@@ -142,6 +140,8 @@
 
   ~octave_parser (void) { }
 
+  int run (void);
+
   // Error mesages for mismatched end tokens.
   void end_error (const char *type, token::end_tok_type ettype, int l, int c);