diff libinterp/parse-tree/oct-parse.yy @ 16124:3be725cd195b

move more lexer helper functions to lexical_feedback class * lex.h, lex.ll (prep_for_script_file, prep_for_function_file): Declare as member functions in lexical_feedback class. Rename from prep_lexer_for_script file and prep_lexer_for_function_file. Change all uses.
author John W. Eaton <jwe@octave.org>
date Tue, 26 Feb 2013 13:24:41 -0500
parents 6884401b2fbb
children 249d62b3fac8
line wrap: on
line diff
--- a/libinterp/parse-tree/oct-parse.yy	Tue Feb 26 12:43:36 2013 -0500
+++ b/libinterp/parse-tree/oct-parse.yy	Tue Feb 26 13:24:41 2013 -0500
@@ -3578,9 +3578,9 @@
             help_buf.push (help_txt);
 
           if (reading_script_file)
-            prep_lexer_for_script_file ();
+            curr_lexer->prep_for_script_file ();
           else
-            prep_lexer_for_function_file ();
+            curr_lexer->prep_for_function_file ();
 
           curr_lexer->parsing_class_method = ! dispatch_type.empty ();