Mercurial > hg > octave-lyh
comparison src/lex.h @ 8746:5dd06f19e9be
handle commands in the lexer
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Sun, 15 Feb 2009 23:49:15 -0500 |
parents | 6dc61981d18b |
children | 8ed42c679af5 |
comparison
equal
deleted
inserted
replaced
8745:6dc61981d18b | 8746:5dd06f19e9be |
---|---|
80 | 80 |
81 // TRUE means that we should convert spaces to a comma inside a | 81 // TRUE means that we should convert spaces to a comma inside a |
82 // matrix definition. | 82 // matrix definition. |
83 bool convert_spaces_to_comma; | 83 bool convert_spaces_to_comma; |
84 | 84 |
85 // TRUE means we are at the beginning of a statement, where a | |
86 // command name is possible. | |
87 bool at_beginning_of_statement; | |
88 | |
85 // TRUE means we're in the middle of defining a function. | 89 // TRUE means we're in the middle of defining a function. |
86 bool defining_func; | 90 bool defining_func; |
87 | 91 |
88 // Nonzero means we are parsing a function handle. | 92 // Nonzero means we are parsing a function handle. |
89 int looking_at_function_handle; | 93 int looking_at_function_handle; |
114 bool looking_for_object_index; | 118 bool looking_for_object_index; |
115 | 119 |
116 // GAG. Stupid kludge so that [[1,2][3,4]] will work. | 120 // GAG. Stupid kludge so that [[1,2][3,4]] will work. |
117 bool do_comma_insert; | 121 bool do_comma_insert; |
118 | 122 |
119 // TRUE means we're doing a raw input command. | |
120 bool doing_rawcommand; | |
121 | |
122 // TRUE means we're looking at an indirect reference to a | 123 // TRUE means we're looking at an indirect reference to a |
123 // structure element. | 124 // structure element. |
124 bool looking_at_indirect_ref; | 125 bool looking_at_indirect_ref; |
125 | 126 |
126 // TRUE means that we've already seen the name of this function. | 127 // TRUE means that we've already seen the name of this function. |