Mercurial > octave-nkf
comparison src/lex.h @ 8001:ff9e7873f8ea
improve handling of command-style names in matrix_or_assign_lhs context
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 31 Jul 2008 13:11:14 -0400 |
parents | 74f5e0c7de9e |
children | 1652e39b934e |
comparison
equal
deleted
inserted
replaced
8000:ea3cd9791703 | 8001:ff9e7873f8ea |
---|---|
49 | 49 |
50 // Is the given string a keyword? | 50 // Is the given string a keyword? |
51 extern bool is_keyword (const std::string& s); | 51 extern bool is_keyword (const std::string& s); |
52 | 52 |
53 extern void prep_lexer_for_script (void); | 53 extern void prep_lexer_for_script (void); |
54 | |
55 extern void force_local_variable (const std::string& name); | |
54 | 56 |
55 // For communication between the lexer and parser. | 57 // For communication between the lexer and parser. |
56 | 58 |
57 class | 59 class |
58 lexical_feedback | 60 lexical_feedback |
125 bool parsing_class_method; | 127 bool parsing_class_method; |
126 | 128 |
127 // Return transpose or start a string? | 129 // Return transpose or start a string? |
128 bool quote_is_transpose; | 130 bool quote_is_transpose; |
129 | 131 |
132 // Set of identifiers that might be local variable names. | |
133 std::set<std::string> pending_local_variables; | |
134 | |
130 private: | 135 private: |
131 | 136 |
132 lexical_feedback (const lexical_feedback&); | 137 lexical_feedback (const lexical_feedback&); |
133 | 138 |
134 lexical_feedback& operator = (const lexical_feedback&); | 139 lexical_feedback& operator = (const lexical_feedback&); |