comparison src/lex.h @ 5102:b04b30d30c66

[project @ 2004-12-28 01:59:05 by jwe]
author jwe
date Tue, 28 Dec 2004 01:59:05 +0000
parents bdb307dc8613
children 4c8a2e4e0717
comparison
equal deleted inserted replaced
5101:9b1af8135ecd 5102:b04b30d30c66
73 73
74 // TRUE means we think we are looking at the beginning of a 74 // TRUE means we think we are looking at the beginning of a
75 // function definition. 75 // function definition.
76 bool beginning_of_function; 76 bool beginning_of_function;
77 77
78 // Another context hack, this time for the plot command's `using',
79 // `title', and `with' keywords.
80 bool cant_be_identifier;
81
82 // TRUE means that we should convert spaces to a comma inside a 78 // TRUE means that we should convert spaces to a comma inside a
83 // matrix definition. 79 // matrix definition.
84 bool convert_spaces_to_comma; 80 bool convert_spaces_to_comma;
85 81
86 // TRUE means we're in the middle of defining a function. 82 // TRUE means we're in the middle of defining a function.
103 int looking_at_object_index; 99 int looking_at_object_index;
104 100
105 // GAG. Stupid kludge so that [[1,2][3,4]] will work. 101 // GAG. Stupid kludge so that [[1,2][3,4]] will work.
106 bool do_comma_insert; 102 bool do_comma_insert;
107 103
108 // TRUE means we think we are looking at a set command. 104 // TRUE means we're doing a raw input command.
109 bool doing_set; 105 bool doing_rawcommand;
110 106
111 // TRUE means we're looking at the range part of a plot command.
112 bool in_plot_range;
113
114 // TRUE means we're looking at the using part of a plot command.
115 bool in_plot_using;
116
117 // TRUE means we're looking at the style part of a plot command.
118 bool in_plot_style;
119
120 // TRUE means we're looking at the axes part of a plot command.
121 bool in_plot_axes;
122
123 // TRUE means we're looking at an indirect reference to a 107 // TRUE means we're looking at an indirect reference to a
124 // structure element. 108 // structure element.
125 bool looking_at_indirect_ref; 109 bool looking_at_indirect_ref;
126 110
127 // TRUE means that we've already seen the name of this function. 111 // TRUE means that we've already seen the name of this function.
131 // Are we parsing a nested function? 115 // Are we parsing a nested function?
132 // 1 ==> Yes. 116 // 1 ==> Yes.
133 // 0 ==> No. 117 // 0 ==> No.
134 // -1 ==> Yes, but it is the last one because we have seen EOF. 118 // -1 ==> Yes, but it is the last one because we have seen EOF.
135 int parsing_nested_function; 119 int parsing_nested_function;
136
137 // TRUE means we've seen something that means we must be past the
138 // range part of a plot command.
139 bool past_plot_range;
140
141 // TRUE means we're working on a plot command.
142 bool plotting;
143 120
144 // Return transpose or start a string? 121 // Return transpose or start a string?
145 bool quote_is_transpose; 122 bool quote_is_transpose;
146 123
147 private: 124 private: