Mercurial > hg > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
16123:a484e39d1f22 | 16124:3be725cd195b |
---|---|
3576 | 3576 |
3577 if (! help_txt.empty ()) | 3577 if (! help_txt.empty ()) |
3578 help_buf.push (help_txt); | 3578 help_buf.push (help_txt); |
3579 | 3579 |
3580 if (reading_script_file) | 3580 if (reading_script_file) |
3581 prep_lexer_for_script_file (); | 3581 curr_lexer->prep_for_script_file (); |
3582 else | 3582 else |
3583 prep_lexer_for_function_file (); | 3583 curr_lexer->prep_for_function_file (); |
3584 | 3584 |
3585 curr_lexer->parsing_class_method = ! dispatch_type.empty (); | 3585 curr_lexer->parsing_class_method = ! dispatch_type.empty (); |
3586 | 3586 |
3587 frame.protect_var (global_command); | 3587 frame.protect_var (global_command); |
3588 | 3588 |