Mercurial > hg > octave-avbm
comparison src/lex.h @ 4238:a5a68c0afe56
[project @ 2002-12-25 21:04:33 by jwe]
author | jwe |
---|---|
date | Wed, 25 Dec 2002 21:04:34 +0000 |
parents | 9c8034434982 |
children | 8627d992beb8 |
comparison
equal
deleted
inserted
replaced
4237:9c8034434982 | 4238:a5a68c0afe56 |
---|---|
111 extern void restore_input_buffer (void *buf); | 111 extern void restore_input_buffer (void *buf); |
112 | 112 |
113 // Delete a buffer (for unwind-prot). | 113 // Delete a buffer (for unwind-prot). |
114 extern void delete_input_buffer (void *buf); | 114 extern void delete_input_buffer (void *buf); |
115 | 115 |
116 // See if a function file has extra garbage after the end statement. | |
117 // This needs to be defined in lex.l so that it can use yyinput() but | |
118 // it must be called from parse.y. | |
119 extern void check_for_garbage_after_fcn_def (void); | |
120 | |
121 // For communication between the lexer and parser. | 116 // For communication between the lexer and parser. |
122 | 117 |
123 class | 118 class |
124 lexical_feedback | 119 lexical_feedback |
125 { | 120 { |
188 bool looking_at_indirect_ref; | 183 bool looking_at_indirect_ref; |
189 | 184 |
190 // TRUE means that we've already seen the name of this function. | 185 // TRUE means that we've already seen the name of this function. |
191 // Should only matter if defining_func is also TRUE. | 186 // Should only matter if defining_func is also TRUE. |
192 bool parsed_function_name; | 187 bool parsed_function_name; |
188 | |
189 // TRUE means that we're parsing a nested function definition. | |
190 bool parsing_nested_function; | |
193 | 191 |
194 // TRUE means we've seen something that means we must be past the | 192 // TRUE means we've seen something that means we must be past the |
195 // range part of a plot command. | 193 // range part of a plot command. |
196 bool past_plot_range; | 194 bool past_plot_range; |
197 | 195 |