Mercurial > hg > octave-nkf
comparison libinterp/parse-tree/lex.h @ 16128:210039e91ad6
localize use of yytext with lexical_feedback member function
* lex.h, lex.ll (lexical_feedback::flex_yytext): New function.
* lex.ll (lexical_feedback::xunput, lexical_feedback::process_comment,
lexical_feedback::handle_number, lexical_feedback::handle_identifier,
lexical_feedback::handle_meta_identifier,
lexical_feedback::handle_superclass_identifier):
Use it instead of accessing yytext directly.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 26 Feb 2013 15:39:56 -0500 |
parents | 5c885c13bfa3 |
children | 053b0364b507 |
comparison
equal
deleted
inserted
replaced
16127:f7eb13f14320 | 16128:210039e91ad6 |
---|---|
208 | 208 |
209 void prep_for_function_file (void); | 209 void prep_for_function_file (void); |
210 | 210 |
211 int octave_read (char *buf, unsigned int max_size); | 211 int octave_read (char *buf, unsigned int max_size); |
212 | 212 |
213 char *flex_yytext (void); | |
214 | |
213 void do_comma_insert_check (void); | 215 void do_comma_insert_check (void); |
214 | 216 |
215 int text_yyinput (void); | 217 int text_yyinput (void); |
216 | 218 |
217 void xunput (char c, char *buf); | 219 void xunput (char c, char *buf); |