parse.cxx (79aad27f) parse.cxx (8f2cf668)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 116 unchanged lines hidden (view full) ---

125 { "alignb", TALIGNC, '\0', TGALIGN | TGDISCARDED, 0},
126 { "alignc", TALIGNC, '\0', TGALIGN, 0},
127 { "alignl", TALIGNL, '\0', TGALIGN, 0},
128 { "alignm", TALIGNC, '\0', TGALIGN | TGDISCARDED, 0},
129 { "alignr", TALIGNR, '\0', TGALIGN, 0},
130 { "alignt", TALIGNC, '\0', TGALIGN | TGDISCARDED, 0},
131 { "and", TAND, MS_AND, TGPRODUCT, 0},
132 { "approx", TAPPROX, MS_APPROX, TGRELATION, 0},
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 116 unchanged lines hidden (view full) ---

125 { "alignb", TALIGNC, '\0', TGALIGN | TGDISCARDED, 0},
126 { "alignc", TALIGNC, '\0', TGALIGN, 0},
127 { "alignl", TALIGNL, '\0', TGALIGN, 0},
128 { "alignm", TALIGNC, '\0', TGALIGN | TGDISCARDED, 0},
129 { "alignr", TALIGNR, '\0', TGALIGN, 0},
130 { "alignt", TALIGNC, '\0', TGALIGN | TGDISCARDED, 0},
131 { "and", TAND, MS_AND, TGPRODUCT, 0},
132 { "approx", TAPPROX, MS_APPROX, TGRELATION, 0},
133 { "aqua", TAQUA, '\0', TGCOLOR, 0},
133 { "arccos", TACOS, '\0', TGFUNCTION, 5},
134 { "arccot", TACOT, '\0', TGFUNCTION, 5},
135 { "arcsin", TASIN, '\0', TGFUNCTION, 5},
136 { "arctan", TATAN, '\0', TGFUNCTION, 5},
137 { "arsinh", TASINH, '\0', TGFUNCTION, 5},
138 { "artanh", TATANH, '\0', TGFUNCTION, 5},
139 { "backepsilon" , TBACKEPSILON, MS_BACKEPSILON, TGSTANDALONE, 5},
140 { "bar", TBAR, MS_BAR, TGATTRIBUT, 5},

--- 37 unchanged lines hidden (view full) ---

178 { "equiv", TEQUIV, MS_EQUIV, TGRELATION, 0},
179 { "exists", TEXISTS, MS_EXISTS, TGSTANDALONE, 5},
180 { "exp", TEXP, '\0', TGFUNCTION, 5},
181 { "fact", TFACT, MS_FACT, TGUNOPER, 5},
182 { "fixed", TFIXED, '\0', TGFONT, 0},
183 { "font", TFONT, '\0', TGFONTATTR, 5},
184 { "forall", TFORALL, MS_FORALL, TGSTANDALONE, 5},
185 { "from", TFROM, '\0', TGLIMIT, 0},
134 { "arccos", TACOS, '\0', TGFUNCTION, 5},
135 { "arccot", TACOT, '\0', TGFUNCTION, 5},
136 { "arcsin", TASIN, '\0', TGFUNCTION, 5},
137 { "arctan", TATAN, '\0', TGFUNCTION, 5},
138 { "arsinh", TASINH, '\0', TGFUNCTION, 5},
139 { "artanh", TATANH, '\0', TGFUNCTION, 5},
140 { "backepsilon" , TBACKEPSILON, MS_BACKEPSILON, TGSTANDALONE, 5},
141 { "bar", TBAR, MS_BAR, TGATTRIBUT, 5},

--- 37 unchanged lines hidden (view full) ---

179 { "equiv", TEQUIV, MS_EQUIV, TGRELATION, 0},
180 { "exists", TEXISTS, MS_EXISTS, TGSTANDALONE, 5},
181 { "exp", TEXP, '\0', TGFUNCTION, 5},
182 { "fact", TFACT, MS_FACT, TGUNOPER, 5},
183 { "fixed", TFIXED, '\0', TGFONT, 0},
184 { "font", TFONT, '\0', TGFONTATTR, 5},
185 { "forall", TFORALL, MS_FORALL, TGSTANDALONE, 5},
186 { "from", TFROM, '\0', TGLIMIT, 0},
187 { "fuchsia", TFUCHSIA, '\0', TGCOLOR, 0},
186 { "func", TFUNC, '\0', TGFUNCTION, 5},
187 { "ge", TGE, MS_GE, TGRELATION, 0},
188 { "geslant", TGESLANT, MS_GESLANT, TGRELATION, 0 },
189 { "gg", TGG, MS_GG, TGRELATION, 0},
190 { "grave", TGRAVE, MS_GRAVE, TGATTRIBUT, 5},
188 { "func", TFUNC, '\0', TGFUNCTION, 5},
189 { "ge", TGE, MS_GE, TGRELATION, 0},
190 { "geslant", TGESLANT, MS_GESLANT, TGRELATION, 0 },
191 { "gg", TGG, MS_GG, TGRELATION, 0},
192 { "grave", TGRAVE, MS_GRAVE, TGATTRIBUT, 5},
193 { "gray", TGRAY, '\0', TGCOLOR, 0},
191 { "green", TGREEN, '\0', TGCOLOR, 0},
192 { "gt", TGT, MS_GT, TGRELATION, 0},
193 { "hat", THAT, MS_HAT, TGATTRIBUT, 5},
194 { "hbar" , THBAR, MS_HBAR, TGSTANDALONE, 5},
195 { "iiint", TIIINT, MS_IIINT, TGOPER, 5},
196 { "iint", TIINT, MS_IINT, TGOPER, 5},
197 { "in", TIN, MS_IN, TGRELATION, 0},
198 { "infinity" , TINFINITY, MS_INFINITY, TGSTANDALONE, 5},

--- 9 unchanged lines hidden (view full) ---

208 { "ldbracket", TLDBRACKET, MS_LDBRACKET, TGLBRACES, 5},
209 { "ldline", TLDLINE, MS_DLINE, TGLBRACES, 5},
210 { "le", TLE, MS_LE, TGRELATION, 0},
211 { "left", TLEFT, '\0', 0, 5},
212 { "leftarrow" , TLEFTARROW, MS_LEFTARROW, TGSTANDALONE, 5},
213 { "leslant", TLESLANT, MS_LESLANT, TGRELATION, 0 },
214 { "lfloor", TLFLOOR, MS_LFLOOR, TGLBRACES, 5},
215 { "lim", TLIM, '\0', TGOPER, 5},
194 { "green", TGREEN, '\0', TGCOLOR, 0},
195 { "gt", TGT, MS_GT, TGRELATION, 0},
196 { "hat", THAT, MS_HAT, TGATTRIBUT, 5},
197 { "hbar" , THBAR, MS_HBAR, TGSTANDALONE, 5},
198 { "iiint", TIIINT, MS_IIINT, TGOPER, 5},
199 { "iint", TIINT, MS_IINT, TGOPER, 5},
200 { "in", TIN, MS_IN, TGRELATION, 0},
201 { "infinity" , TINFINITY, MS_INFINITY, TGSTANDALONE, 5},

--- 9 unchanged lines hidden (view full) ---

211 { "ldbracket", TLDBRACKET, MS_LDBRACKET, TGLBRACES, 5},
212 { "ldline", TLDLINE, MS_DLINE, TGLBRACES, 5},
213 { "le", TLE, MS_LE, TGRELATION, 0},
214 { "left", TLEFT, '\0', 0, 5},
215 { "leftarrow" , TLEFTARROW, MS_LEFTARROW, TGSTANDALONE, 5},
216 { "leslant", TLESLANT, MS_LESLANT, TGRELATION, 0 },
217 { "lfloor", TLFLOOR, MS_LFLOOR, TGLBRACES, 5},
218 { "lim", TLIM, '\0', TGOPER, 5},
219 { "lime", TLIME, '\0', TGCOLOR, 0},
216 { "liminf", TLIMINF, '\0', TGOPER, 5},
217 { "limsup", TLIMSUP, '\0', TGOPER, 5},
218 { "lint", TLINT, MS_LINT, TGOPER, 5},
219 { "ll", TLL, MS_LL, TGRELATION, 0},
220 { "lline", TLLINE, MS_LINE, TGLBRACES, 5},
221 { "llint", TLLINT, MS_LLINT, TGOPER, 5},
222 { "lllint", TLLLINT, MS_LLLINT, TGOPER, 5},
223 { "ln", TLN, '\0', TGFUNCTION, 5},
224 { "log", TLOG, '\0', TGFUNCTION, 5},
225 { "lsub", TLSUB, '\0', TGPOWER, 0},
226 { "lsup", TLSUP, '\0', TGPOWER, 0},
227 { "lt", TLT, MS_LT, TGRELATION, 0},
228 { "magenta", TMAGENTA, '\0', TGCOLOR, 0},
220 { "liminf", TLIMINF, '\0', TGOPER, 5},
221 { "limsup", TLIMSUP, '\0', TGOPER, 5},
222 { "lint", TLINT, MS_LINT, TGOPER, 5},
223 { "ll", TLL, MS_LL, TGRELATION, 0},
224 { "lline", TLLINE, MS_LINE, TGLBRACES, 5},
225 { "llint", TLLINT, MS_LLINT, TGOPER, 5},
226 { "lllint", TLLLINT, MS_LLLINT, TGOPER, 5},
227 { "ln", TLN, '\0', TGFUNCTION, 5},
228 { "log", TLOG, '\0', TGFUNCTION, 5},
229 { "lsub", TLSUB, '\0', TGPOWER, 0},
230 { "lsup", TLSUP, '\0', TGPOWER, 0},
231 { "lt", TLT, MS_LT, TGRELATION, 0},
232 { "magenta", TMAGENTA, '\0', TGCOLOR, 0},
233 { "maroon", TMAROON, '\0', TGCOLOR, 0},
229 { "matrix", TMATRIX, '\0', 0, 5},
230 { "minusplus", TMINUSPLUS, MS_MINUSPLUS, TGUNOPER | TGSUM, 5},
231 { "mline", TMLINE, MS_LINE, 0, 0}, //! nicht in TGRBRACES, Level 0
232 { "nabla", TNABLA, MS_NABLA, TGSTANDALONE, 5},
234 { "matrix", TMATRIX, '\0', 0, 5},
235 { "minusplus", TMINUSPLUS, MS_MINUSPLUS, TGUNOPER | TGSUM, 5},
236 { "mline", TMLINE, MS_LINE, 0, 0}, //! nicht in TGRBRACES, Level 0
237 { "nabla", TNABLA, MS_NABLA, TGSTANDALONE, 5},
238 { "navy", TNAVY, '\0', TGCOLOR, 0},
233 { "nbold", TNBOLD, '\0', TGFONTATTR, 5},
234 { "ndivides", TNDIVIDES, MS_NDIVIDES, TGRELATION, 0},
235 { "neg", TNEG, MS_NEG, TGUNOPER, 5 },
236 { "neq", TNEQ, MS_NEQ, TGRELATION, 0},
237 { "newline", TNEWLINE, '\0', 0, 0},
238 { "ni", TNI, MS_NI, TGRELATION, 0},
239 { "nitalic", TNITALIC, '\0', TGFONTATTR, 5},
240 { "none", TNONE, '\0', TGLBRACES | TGRBRACES, 0},
241 { "nospace", TNOSPACE, '\0', TGSTANDALONE, 5},
242 { "notin", TNOTIN, MS_NOTIN, TGRELATION, 0},
243 { "nroot", TNROOT, MS_SQRT, TGUNOPER, 5},
244 { "nsubset", TNSUBSET, MS_NSUBSET, TGRELATION, 0 },
245 { "nsupset", TNSUPSET, MS_NSUPSET, TGRELATION, 0 },
246 { "nsubseteq", TNSUBSETEQ, MS_NSUBSETEQ, TGRELATION, 0 },
247 { "nsupseteq", TNSUPSETEQ, MS_NSUPSETEQ, TGRELATION, 0 },
248 { "odivide", TODIVIDE, MS_ODIVIDE, TGPRODUCT, 0},
249 { "odot", TODOT, MS_ODOT, TGPRODUCT, 0},
239 { "nbold", TNBOLD, '\0', TGFONTATTR, 5},
240 { "ndivides", TNDIVIDES, MS_NDIVIDES, TGRELATION, 0},
241 { "neg", TNEG, MS_NEG, TGUNOPER, 5 },
242 { "neq", TNEQ, MS_NEQ, TGRELATION, 0},
243 { "newline", TNEWLINE, '\0', 0, 0},
244 { "ni", TNI, MS_NI, TGRELATION, 0},
245 { "nitalic", TNITALIC, '\0', TGFONTATTR, 5},
246 { "none", TNONE, '\0', TGLBRACES | TGRBRACES, 0},
247 { "nospace", TNOSPACE, '\0', TGSTANDALONE, 5},
248 { "notin", TNOTIN, MS_NOTIN, TGRELATION, 0},
249 { "nroot", TNROOT, MS_SQRT, TGUNOPER, 5},
250 { "nsubset", TNSUBSET, MS_NSUBSET, TGRELATION, 0 },
251 { "nsupset", TNSUPSET, MS_NSUPSET, TGRELATION, 0 },
252 { "nsubseteq", TNSUBSETEQ, MS_NSUBSETEQ, TGRELATION, 0 },
253 { "nsupseteq", TNSUPSETEQ, MS_NSUPSETEQ, TGRELATION, 0 },
254 { "odivide", TODIVIDE, MS_ODIVIDE, TGPRODUCT, 0},
255 { "odot", TODOT, MS_ODOT, TGPRODUCT, 0},
256 { "olive", TOLIVE, '\0', TGCOLOR, 0},
250 { "ominus", TOMINUS, MS_OMINUS, TGSUM, 0},
251 { "oper", TOPER, '\0', TGOPER, 5},
252 { "oplus", TOPLUS, MS_OPLUS, TGSUM, 0},
253 { "or", TOR, MS_OR, TGSUM, 0},
254 { "ortho", TORTHO, MS_ORTHO, TGRELATION, 0},
255 { "otimes", TOTIMES, MS_OTIMES, TGPRODUCT, 0},
256 { "over", TOVER, '\0', TGPRODUCT, 0},
257 { "overbrace", TOVERBRACE, MS_OVERBRACE, TGPRODUCT, 5},
258 { "overline", TOVERLINE, '\0', TGATTRIBUT, 5},
259 { "overstrike", TOVERSTRIKE, '\0', TGATTRIBUT, 5},
260 { "owns", TNI, MS_NI, TGRELATION, 0},
261 { "parallel", TPARALLEL, MS_DLINE, TGRELATION, 0},
262 { "partial", TPARTIAL, MS_PARTIAL, TGSTANDALONE, 5 },
263 { "phantom", TPHANTOM, '\0', TGFONTATTR, 5},
264 { "plusminus", TPLUSMINUS, MS_PLUSMINUS, TGUNOPER | TGSUM, 5},
265 { "prod", TPROD, MS_PROD, TGOPER, 5},
266 { "prop", TPROP, MS_PROP, TGRELATION, 0},
257 { "ominus", TOMINUS, MS_OMINUS, TGSUM, 0},
258 { "oper", TOPER, '\0', TGOPER, 5},
259 { "oplus", TOPLUS, MS_OPLUS, TGSUM, 0},
260 { "or", TOR, MS_OR, TGSUM, 0},
261 { "ortho", TORTHO, MS_ORTHO, TGRELATION, 0},
262 { "otimes", TOTIMES, MS_OTIMES, TGPRODUCT, 0},
263 { "over", TOVER, '\0', TGPRODUCT, 0},
264 { "overbrace", TOVERBRACE, MS_OVERBRACE, TGPRODUCT, 5},
265 { "overline", TOVERLINE, '\0', TGATTRIBUT, 5},
266 { "overstrike", TOVERSTRIKE, '\0', TGATTRIBUT, 5},
267 { "owns", TNI, MS_NI, TGRELATION, 0},
268 { "parallel", TPARALLEL, MS_DLINE, TGRELATION, 0},
269 { "partial", TPARTIAL, MS_PARTIAL, TGSTANDALONE, 5 },
270 { "phantom", TPHANTOM, '\0', TGFONTATTR, 5},
271 { "plusminus", TPLUSMINUS, MS_PLUSMINUS, TGUNOPER | TGSUM, 5},
272 { "prod", TPROD, MS_PROD, TGOPER, 5},
273 { "prop", TPROP, MS_PROP, TGRELATION, 0},
274 { "purple", TPURPLE, '\0', TGCOLOR, 0},
267 { "rangle", TRANGLE, MS_RANGLE, TGRBRACES, 0}, //! 0 to terminate expression
268 { "rbrace", TRBRACE, MS_RBRACE, TGRBRACES, 0}, //
269 { "rceil", TRCEIL, MS_RCEIL, TGRBRACES, 0}, //
270 { "rdbracket", TRDBRACKET, MS_RDBRACKET, TGRBRACES, 0}, //
271 { "rdline", TRDLINE, MS_DLINE, TGRBRACES, 0}, //
272 { "red", TRED, '\0', TGCOLOR, 0},
273 { "rfloor", TRFLOOR, MS_RFLOOR, TGRBRACES, 0}, //! 0 to terminate expression
274 { "right", TRIGHT, '\0', 0, 0},

--- 4 unchanged lines hidden (view full) ---

279 { "sans", TSANS, '\0', TGFONT, 0},
280 { "serif", TSERIF, '\0', TGFONT, 0},
281 { "setC" , TSETC, MS_SETC, TGSTANDALONE, 5},
282 { "setN" , TSETN, MS_SETN, TGSTANDALONE, 5},
283 { "setQ" , TSETQ, MS_SETQ, TGSTANDALONE, 5},
284 { "setR" , TSETR, MS_SETR, TGSTANDALONE, 5},
285 { "setZ" , TSETZ, MS_SETZ, TGSTANDALONE, 5},
286 { "setminus", TBACKSLASH, MS_BACKSLASH, TGPRODUCT, 0 },
275 { "rangle", TRANGLE, MS_RANGLE, TGRBRACES, 0}, //! 0 to terminate expression
276 { "rbrace", TRBRACE, MS_RBRACE, TGRBRACES, 0}, //
277 { "rceil", TRCEIL, MS_RCEIL, TGRBRACES, 0}, //
278 { "rdbracket", TRDBRACKET, MS_RDBRACKET, TGRBRACES, 0}, //
279 { "rdline", TRDLINE, MS_DLINE, TGRBRACES, 0}, //
280 { "red", TRED, '\0', TGCOLOR, 0},
281 { "rfloor", TRFLOOR, MS_RFLOOR, TGRBRACES, 0}, //! 0 to terminate expression
282 { "right", TRIGHT, '\0', 0, 0},

--- 4 unchanged lines hidden (view full) ---

287 { "sans", TSANS, '\0', TGFONT, 0},
288 { "serif", TSERIF, '\0', TGFONT, 0},
289 { "setC" , TSETC, MS_SETC, TGSTANDALONE, 5},
290 { "setN" , TSETN, MS_SETN, TGSTANDALONE, 5},
291 { "setQ" , TSETQ, MS_SETQ, TGSTANDALONE, 5},
292 { "setR" , TSETR, MS_SETR, TGSTANDALONE, 5},
293 { "setZ" , TSETZ, MS_SETZ, TGSTANDALONE, 5},
294 { "setminus", TBACKSLASH, MS_BACKSLASH, TGPRODUCT, 0 },
295 { "silver", TSILVER, '\0', TGCOLOR, 0},
287 { "sim", TSIM, MS_SIM, TGRELATION, 0},
288 { "simeq", TSIMEQ, MS_SIMEQ, TGRELATION, 0},
289 { "sin", TSIN, '\0', TGFUNCTION, 5},
290 { "sinh", TSINH, '\0', TGFUNCTION, 5},
291 { "size", TSIZE, '\0', TGFONTATTR, 5},
292 { "slash", TSLASH, MS_SLASH, TGPRODUCT, 0 },
293 { "sqrt", TSQRT, MS_SQRT, TGUNOPER, 5},
294 { "stack", TSTACK, '\0', 0, 5},
295 { "sub", TRSUB, '\0', TGPOWER, 0},
296 { "subset", TSUBSET, MS_SUBSET, TGRELATION, 0},
297 { "subseteq", TSUBSETEQ, MS_SUBSETEQ, TGRELATION, 0},
298 { "sum", TSUM, MS_SUM, TGOPER, 5},
299 { "sup", TRSUP, '\0', TGPOWER, 0},
300 { "supset", TSUPSET, MS_SUPSET, TGRELATION, 0},
301 { "supseteq", TSUPSETEQ, MS_SUPSETEQ, TGRELATION, 0},
302 { "tan", TTAN, '\0', TGFUNCTION, 5},
303 { "tanh", TTANH, '\0', TGFUNCTION, 5},
296 { "sim", TSIM, MS_SIM, TGRELATION, 0},
297 { "simeq", TSIMEQ, MS_SIMEQ, TGRELATION, 0},
298 { "sin", TSIN, '\0', TGFUNCTION, 5},
299 { "sinh", TSINH, '\0', TGFUNCTION, 5},
300 { "size", TSIZE, '\0', TGFONTATTR, 5},
301 { "slash", TSLASH, MS_SLASH, TGPRODUCT, 0 },
302 { "sqrt", TSQRT, MS_SQRT, TGUNOPER, 5},
303 { "stack", TSTACK, '\0', 0, 5},
304 { "sub", TRSUB, '\0', TGPOWER, 0},
305 { "subset", TSUBSET, MS_SUBSET, TGRELATION, 0},
306 { "subseteq", TSUBSETEQ, MS_SUBSETEQ, TGRELATION, 0},
307 { "sum", TSUM, MS_SUM, TGOPER, 5},
308 { "sup", TRSUP, '\0', TGPOWER, 0},
309 { "supset", TSUPSET, MS_SUPSET, TGRELATION, 0},
310 { "supseteq", TSUPSETEQ, MS_SUPSETEQ, TGRELATION, 0},
311 { "tan", TTAN, '\0', TGFUNCTION, 5},
312 { "tanh", TTANH, '\0', TGFUNCTION, 5},
313 { "teal", TTEAL, '\0', TGCOLOR, 0},
304 { "tilde", TTILDE, MS_TILDE, TGATTRIBUT, 5},
305 { "times", TTIMES, MS_TIMES, TGPRODUCT, 0},
306 { "to", TTO, '\0', TGLIMIT, 0},
307 { "toward", TTOWARD, MS_RIGHTARROW, TGRELATION, 0},
308 { "transl", TTRANSL, MS_TRANSL, TGRELATION, 0},
309 { "transr", TTRANSR, MS_TRANSR, TGRELATION, 0},
310 { "underbrace", TUNDERBRACE, MS_UNDERBRACE, TGPRODUCT, 5},
311 { "underline", TUNDERLINE, '\0', TGATTRIBUT, 5},

--- 2207 unchanged lines hidden ---
314 { "tilde", TTILDE, MS_TILDE, TGATTRIBUT, 5},
315 { "times", TTIMES, MS_TIMES, TGPRODUCT, 0},
316 { "to", TTO, '\0', TGLIMIT, 0},
317 { "toward", TTOWARD, MS_RIGHTARROW, TGRELATION, 0},
318 { "transl", TTRANSL, MS_TRANSL, TGRELATION, 0},
319 { "transr", TTRANSR, MS_TRANSR, TGRELATION, 0},
320 { "underbrace", TUNDERBRACE, MS_UNDERBRACE, TGPRODUCT, 5},
321 { "underline", TUNDERLINE, '\0', TGATTRIBUT, 5},

--- 2207 unchanged lines hidden ---