Mercurial > hg > octave-lyh
comparison src/help.cc @ 928:2f91e7098f8c
[project @ 1994-11-15 21:53:40 by jwe]
author | jwe |
---|---|
date | Tue, 15 Nov 1994 21:56:54 +0000 |
parents | b6b78f85743a |
children | 22277a269bbb |
comparison
equal
deleted
inserted
replaced
927:599bc76931e9 | 928:2f91e7098f8c |
---|---|
78 | 78 |
79 { "\"", | 79 { "\"", |
80 "String delimiter.\n", }, | 80 "String delimiter.\n", }, |
81 | 81 |
82 { "#", | 82 { "#", |
83 "Begin comment character. See also `%'.\n", }, | 83 "Begin comment character. See also `%'.", }, |
84 | 84 |
85 { "%", | 85 { "%", |
86 "Begin comment charcter. See also `#'.\n", }, | 86 "Begin comment charcter. See also `#'.", }, |
87 | 87 |
88 { "&", | 88 { "&", |
89 "Logical and operator. See also `&&'.\n", }, | 89 "Logical and operator. See also `&&'.", }, |
90 | 90 |
91 { "&&", | 91 { "&&", |
92 "Logical and operator. See also `&'.\n", }, | 92 "Logical and operator. See also `&'.", }, |
93 | 93 |
94 { "'", | 94 { "'", |
95 "Matrix transpose operator. For complex matrices, computes the\n\ | 95 "Matrix transpose operator. For complex matrices, computes the\n\ |
96 complex conjugate (Hermitian) transpose. See also `.''\n\ | 96 complex conjugate (Hermitian) transpose. See also `.''\n\ |
97 \n\ | 97 \n\ |
98 The single quote character may also be used to delimit strings, but\n\ | 98 The single quote character may also be used to delimit strings, but\n\ |
99 it is better to use the double quote character, since that is never\n\ | 99 it is better to use the double quote character, since that is never\n\ |
100 ambiguous\n", }, | 100 ambiguous", }, |
101 | 101 |
102 { "(", | 102 { "(", |
103 "Array index or function argument delimiter.\n", }, | 103 "Array index or function argument delimiter.", }, |
104 | 104 |
105 { ")", | 105 { ")", |
106 "Array index or function argument delimiter.\n", }, | 106 "Array index or function argument delimiter.", }, |
107 | 107 |
108 { "*", | 108 { "*", |
109 "Multiplication operator. See also `.*'\n", }, | 109 "Multiplication operator. See also `.*'", }, |
110 | 110 |
111 { "**", | 111 { "**", |
112 "Power operator. See also `^', `.**', and `.^'\n", }, | 112 "Power operator. See also `^', `.**', and `.^'", }, |
113 | 113 |
114 { "+", | 114 { "+", |
115 "Addition operator.\n", }, | 115 "Addition operator.", }, |
116 | 116 |
117 { "++", | 117 { "++", |
118 "Increment operator. As in C, may be applied as a prefix or postfix operator.\n", }, | 118 "Increment operator. As in C, may be applied as a prefix or postfix operator.", }, |
119 | 119 |
120 { ",", | 120 { ",", |
121 "Array index, function argument, or command separator.\n", }, | 121 "Array index, function argument, or command separator.", }, |
122 | 122 |
123 { "-", | 123 { "-", |
124 "Subtraction or unary negation operator.\n", }, | 124 "Subtraction or unary negation operator.", }, |
125 | 125 |
126 { "--", | 126 { "--", |
127 "Decrement operator. As in C, may be applied as a prefix or postfix operator.\n", }, | 127 "Decrement operator. As in C, may be applied as a prefix or postfix operator.", }, |
128 | 128 |
129 { ".'", | 129 { ".'", |
130 "Matrix transpose operator. For complex matrices, computes the\n\ | 130 "Matrix transpose operator. For complex matrices, computes the\n\ |
131 transpose, *not* the complex conjugate transpose. See also `''.\n", }, | 131 transpose, *not* the complex conjugate transpose. See also `''.", }, |
132 | 132 |
133 { ".*", | 133 { ".*", |
134 "Element by element multiplication operator. See also `*'.\n", }, | 134 "Element by element multiplication operator. See also `*'.", }, |
135 | 135 |
136 { ".**", | 136 { ".**", |
137 "Element by element power operator. See also `**', `^', and `.^'.\n", }, | 137 "Element by element power operator. See also `**', `^', and `.^'.", }, |
138 | 138 |
139 { "./", | 139 { "./", |
140 "Element by element division operator. See also `/' and `\\'.\n", }, | 140 "Element by element division operator. See also `/' and `\\'.", }, |
141 | 141 |
142 { ".^", | 142 { ".^", |
143 "Element by element power operator. See also `**', `^', and `.^'.\n", }, | 143 "Element by element power operator. See also `**', `^', and `.^'.", }, |
144 | 144 |
145 { "/", | 145 { "/", |
146 "Right division. See also `\\' and `./'.\n", }, | 146 "Right division. See also `\\' and `./'.", }, |
147 | 147 |
148 { ":", | 148 { ":", |
149 "Select entire rows or columns of matrices.\n", }, | 149 "Select entire rows or columns of matrices.", }, |
150 | 150 |
151 { ";", | 151 { ";", |
152 "Array row or command separator. See also `,'.\n", }, | 152 "Array row or command separator. See also `,'.", }, |
153 | 153 |
154 { "<", | 154 { "<", |
155 "Less than operator.\n", }, | 155 "Less than operator.", }, |
156 | 156 |
157 { "<=", | 157 { "<=", |
158 "Less than or equals operator.\n", }, | 158 "Less than or equals operator.", }, |
159 | 159 |
160 { "<>", | 160 { "<>", |
161 "Logical not equals operator. See also `!=' and `~='.\n", }, | 161 "Logical not equals operator. See also `!=' and `~='.", }, |
162 | 162 |
163 { "=", | 163 { "=", |
164 "Assignment operator.\n", }, | 164 "Assignment operator.", }, |
165 | 165 |
166 { "==", | 166 { "==", |
167 "Equality test operator.\n", }, | 167 "Equality test operator.", }, |
168 | 168 |
169 { ">", | 169 { ">", |
170 "Greater than operator.\n", }, | 170 "Greater than operator.", }, |
171 | 171 |
172 { ">=", | 172 { ">=", |
173 "Greater than or equals operator.\n", }, | 173 "Greater than or equals operator.", }, |
174 | 174 |
175 { "[", | 175 { "[", |
176 "Return list delimiter. See also `]'.\n", }, | 176 "Return list delimiter. See also `]'.", }, |
177 | 177 |
178 { "\\", | 178 { "\\", |
179 "Left division operator. See also `/' and `./'.\n", }, | 179 "Left division operator. See also `/' and `./'.", }, |
180 | 180 |
181 { "]", | 181 { "]", |
182 "Return list delimiter. See also `['.\n", }, | 182 "Return list delimiter. See also `['.", }, |
183 | 183 |
184 { "^", | 184 { "^", |
185 "Power operator. See also `**', `.^', and `.**.'\n", }, | 185 "Power operator. See also `**', `.^', and `.**.'", }, |
186 | 186 |
187 { "|", | 187 { "|", |
188 "Logical or operator. See also `||'.\n", }, | 188 "Logical or operator. See also `||'.", }, |
189 | 189 |
190 { "||", | 190 { "||", |
191 "Logical or operator. See also `|'.\n", }, | 191 "Logical or operator. See also `|'.", }, |
192 | 192 |
193 { "~", | 193 { "~", |
194 "Logical not operator. See also `!' and `~'.\n", }, | 194 "Logical not operator. See also `!' and `~'.", }, |
195 | 195 |
196 { "~=", | 196 { "~=", |
197 "Logical not equals operator. See also `<>' and `!='.\n", }, | 197 "Logical not equals operator. See also `<>' and `!='.", }, |
198 | 198 |
199 { 0, 0, }, | 199 { 0, 0, }, |
200 }; | 200 }; |
201 | 201 |
202 static help_list keywords[] = | 202 static help_list keywords[] = |
203 { | 203 { |
204 { "all_va_args", | |
205 "Pass all unnamed arguments to another function call.", }, | |
206 | |
204 { "break", | 207 { "break", |
205 "Exit the innermost enclosing while or for loop.\n", }, | 208 "Exit the innermost enclosing while or for loop.", }, |
206 | 209 |
207 { "continue", | 210 { "continue", |
208 "Jump to the end of the innermost enclosing while or for loop.\n", }, | 211 "Jump to the end of the innermost enclosing while or for loop.", }, |
209 | 212 |
210 { "else", | 213 { "else", |
211 "Alternate action for an if block.\n", }, | 214 "Alternate action for an if block.", }, |
212 | 215 |
213 { "elseif", | 216 { "elseif", |
214 "Alternate conditional test for an if block.\n", }, | 217 "Alternate conditional test for an if block.", }, |
215 | 218 |
216 { "end", | 219 { "end", |
217 "Mark the end of any for, if, while, or function block.\n", }, | 220 "Mark the end of any for, if, while, or function block.", }, |
221 | |
222 { "end_unwind_protect", | |
223 "Mark the end of an unwind_protect block.", }, | |
218 | 224 |
219 { "endfor", | 225 { "endfor", |
220 "Mark the end of a for loop.\n", }, | 226 "Mark the end of a for loop.", }, |
221 | 227 |
222 { "endfunction", | 228 { "endfunction", |
223 "Mark the end of a function.\n", }, | 229 "Mark the end of a function.", }, |
224 | 230 |
225 { "endif", | 231 { "endif", |
226 "Mark the end of an if block.\n", }, | 232 "Mark the end of an if block.", }, |
227 | 233 |
228 { "endwhile", | 234 { "endwhile", |
229 "Mark the end of a while loop.\n", }, | 235 "Mark the end of a while loop.", }, |
230 | 236 |
231 { "for", | 237 { "for", |
232 "Begin a for loop.\n", }, | 238 "Begin a for loop.", }, |
233 | 239 |
234 { "function", | 240 { "function", |
235 "Begin a function body.\n", }, | 241 "Begin a function body.", }, |
236 | 242 |
237 { "global", | 243 { "global", |
238 "Declare variables to have global scope.\n", }, | 244 "Declare variables to have global scope.", }, |
239 | 245 |
240 { "gplot", | 246 { "gplot", |
241 "Produce 2-D plots using gnuplot-like command syntax.\n", }, | 247 "Produce 2-D plots using gnuplot-like command syntax.", }, |
242 | 248 |
243 { "gsplot", | 249 { "gsplot", |
244 "Produce 3-D plots using gnuplot-like command syntax.\n", }, | 250 "Produce 3-D plots using gnuplot-like command syntax.", }, |
245 | 251 |
246 { "if", | 252 { "if", |
247 "Begin an if block.\n", }, | 253 "Begin an if block.", }, |
248 | 254 |
249 { "return", | 255 { "return", |
250 "Return from a function.\n", }, | 256 "Return from a function.", }, |
257 | |
258 { "unwind_protect", | |
259 "Begin an unwind_protect block.", }, | |
260 | |
261 { "unwind_protect_cleanup", | |
262 "Begin the cleanup section of an unwind_protect block.", }, | |
251 | 263 |
252 { "while", | 264 { "while", |
253 "Begin a while loop.\n", }, | 265 "Begin a while loop.", }, |
254 | 266 |
255 { 0, 0, }, | 267 { 0, 0, }, |
256 }; | 268 }; |
257 | 269 |
258 // Return a copy of the operator or keyword names. | 270 // Return a copy of the operator or keyword names. |