mathematical 1.1.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. checksums.yaml +4 -4
  2. data/ext/mathematical/extconf.rb +6 -1
  3. data/ext/mathematical/lasem/src/lsmdomcharacterdata.c +17 -0
  4. data/ext/mathematical/lasem/src/lsmdomdocument.c +17 -0
  5. data/ext/mathematical/lasem/src/lsmmathmlfencedelement.c +8 -6
  6. data/ext/mathematical/lasem/src/lsmmathmloperatorelement.c +8 -6
  7. data/ext/mathematical/lasem/src/lsmmathmlview.c +12 -7
  8. data/ext/mathematical/lasem/src/lsmmathmlview.h +2 -0
  9. data/ext/mathematical/lasem/src/lsmsvgsymbolelement.c +74 -0
  10. data/ext/mathematical/lasem/src/lsmsvgsymbolelement.h +3 -0
  11. data/ext/mathematical/lasem/src/lsmsvguseelement.c +10 -9
  12. data/ext/mathematical/lasem/src/lsmsvgview.c +12 -0
  13. data/ext/mathematical/lasem/src/lsmsvgview.h +1 -0
  14. data/ext/mathematical/lasem/tests/lsmtest.c +1 -1
  15. data/ext/mathematical/lasem/tests/suite.c +18 -1
  16. data/ext/mathematical/mtex2MML/src/lex.yy.c +4454 -4090
  17. data/ext/mathematical/mtex2MML/src/mtex2MML.h +1 -0
  18. data/ext/mathematical/mtex2MML/src/parse_extras.c +176 -41
  19. data/ext/mathematical/mtex2MML/src/parse_extras.h +30 -8
  20. data/ext/mathematical/mtex2MML/src/string_extras.c +5 -26
  21. data/ext/mathematical/mtex2MML/src/string_extras.h +1 -6
  22. data/ext/mathematical/mtex2MML/src/y.tab.c +6600 -5492
  23. data/ext/mathematical/mtex2MML/src/y.tab.h +572 -525
  24. data/lib/mathematical/version.rb +1 -1
  25. data/mathematical.gemspec +1 -1
  26. data/test/mathematical/basic_test.rb +1 -1
  27. data/test/mathematical/corrections_test.rb +1 -1
  28. data/test/mathematical/fixtures_test.rb +1 -1
  29. data/test/mathematical/maliciousness_test.rb +17 -17
  30. data/test/mathematical/mathjax_test.rb +2 -3
  31. data/test/mathematical/mathml_test.rb +1 -1
  32. data/test/mathematical/multiples_test.rb +1 -1
  33. data/test/mathematical/performance_test.rb +6 -8
  34. data/test/mathematical/png_test.rb +1 -1
  35. data/test/test_helper.rb +2 -2
  36. metadata +6 -6
@@ -1,14 +1,13 @@
1
- /* A Bison parser, made by GNU Bison 2.3. */
1
+ /* A Bison parser, made by GNU Bison 3.0.4. */
2
2
 
3
- /* Skeleton interface for Bison's Yacc-like parsers in C
3
+ /* Bison interface for Yacc-like parsers in C
4
4
 
5
- Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
6
- Free Software Foundation, Inc.
5
+ Copyright (C) 1984, 1989-1990, 2000-2015 Free Software Foundation, Inc.
7
6
 
8
- This program is free software; you can redistribute it and/or modify
7
+ This program is free software: you can redistribute it and/or modify
9
8
  it under the terms of the GNU General Public License as published by
10
- the Free Software Foundation; either version 2, or (at your option)
11
- any later version.
9
+ the Free Software Foundation, either version 3 of the License, or
10
+ (at your option) any later version.
12
11
 
13
12
  This program is distributed in the hope that it will be useful,
14
13
  but WITHOUT ANY WARRANTY; without even the implied warranty of
@@ -16,9 +15,7 @@
16
15
  GNU General Public License for more details.
17
16
 
18
17
  You should have received a copy of the GNU General Public License
19
- along with this program; if not, write to the Free Software
20
- Foundation, Inc., 51 Franklin Street, Fifth Floor,
21
- Boston, MA 02110-1301, USA. */
18
+ along with this program. If not, see <http://www.gnu.org/licenses/>. */
22
19
 
23
20
  /* As a special exception, you may create a larger work that contains
24
21
  part or all of the Bison parser skeleton and distribute that work
@@ -33,281 +30,310 @@
33
30
  This special exception was added by the Free Software Foundation in
34
31
  version 2.2 of Bison. */
35
32
 
36
- /* Tokens. */
33
+ #ifndef YY_MTEX2MML_YY_Y_TAB_H_INCLUDED
34
+ # define YY_MTEX2MML_YY_Y_TAB_H_INCLUDED
35
+ /* Debug traces. */
36
+ #ifndef YYDEBUG
37
+ # define YYDEBUG 0
38
+ #endif
39
+ #if YYDEBUG
40
+ extern int mtex2MML_yydebug;
41
+ #endif
42
+
43
+ /* Token type. */
37
44
  #ifndef YYTOKENTYPE
38
45
  # define YYTOKENTYPE
39
- /* Put the tokens into the symbol table, so that GDB and other debuggers
40
- know about them. */
41
- enum yytokentype {
42
- TEXABOVEWITHDELIMS = 258,
43
- TEXABOVE = 259,
44
- TEXATOPWITHDELIMS = 260,
45
- TEXATOP = 261,
46
- TEXOVERWITHDELIMS = 262,
47
- TEXOVER = 263,
48
- CHAR = 264,
49
- STARTMATH = 265,
50
- STARTDMATH = 266,
51
- ENDMATH = 267,
52
- MTEXT = 268,
53
- MI = 269,
54
- MIB = 270,
55
- MN = 271,
56
- MO = 272,
57
- LIMITS = 273,
58
- NOLIMITS = 274,
59
- SUP = 275,
60
- SUB = 276,
61
- MROWOPEN = 277,
62
- MROWCLOSE = 278,
63
- LEFT = 279,
64
- RIGHT = 280,
65
- BIG = 281,
66
- BBIG = 282,
67
- BIGG = 283,
68
- BBIGG = 284,
69
- BIGL = 285,
70
- BBIGL = 286,
71
- BIGGL = 287,
72
- BBIGGL = 288,
73
- BIGM = 289,
74
- BBIGM = 290,
75
- BIGGM = 291,
76
- BBIGGM = 292,
77
- FRAC = 293,
78
- TFRAC = 294,
79
- DFRAC = 295,
80
- OPERATORNAME = 296,
81
- MATHOP = 297,
82
- MATHBIN = 298,
83
- MATHREL = 299,
84
- MATHINNER = 300,
85
- MOP = 301,
86
- MOL = 302,
87
- MOLL = 303,
88
- MOF = 304,
89
- MOR = 305,
90
- PERIODDELIM = 306,
91
- OTHERDELIM = 307,
92
- LEFTDELIM = 308,
93
- RIGHTDELIM = 309,
94
- MOS = 310,
95
- MOB = 311,
96
- SQRT = 312,
97
- ROOT = 313,
98
- BINOM = 314,
99
- TBINOM = 315,
100
- BRACE = 316,
101
- BRACK = 317,
102
- CHOOSE = 318,
103
- DBINOM = 319,
104
- UNDER = 320,
105
- OVER = 321,
106
- OVERBRACE = 322,
107
- OVERBRACKET = 323,
108
- UNDERLINE = 324,
109
- UNDERBRACE = 325,
110
- UNDERBRACKET = 326,
111
- UNDEROVER = 327,
112
- TENSOR = 328,
113
- MULTI = 329,
114
- ALIGNATVALUE = 330,
115
- ARRAYALIGN = 331,
116
- COLUMNALIGN = 332,
117
- ARRAY = 333,
118
- SPACECUBE = 334,
119
- HSPACE = 335,
120
- MOVELEFT = 336,
121
- MOVERIGHT = 337,
122
- RAISE = 338,
123
- RAISESTRING = 339,
124
- LOWER = 340,
125
- LOWERSTRING = 341,
126
- PXSTRING = 342,
127
- COLSEP = 343,
128
- ROWSEP = 344,
129
- ARRAYOPTS = 345,
130
- COLLAYOUT = 346,
131
- COLALIGN = 347,
132
- ROWALIGN = 348,
133
- ALIGN = 349,
134
- EQROWS = 350,
135
- EQCOLS = 351,
136
- ROWLINES = 352,
137
- COLLINES = 353,
138
- FRAME = 354,
139
- PADDING = 355,
140
- ATTRLIST = 356,
141
- ITALICS = 357,
142
- SANS = 358,
143
- TT = 359,
144
- ENCLOSE = 360,
145
- ENCLOSENOTATION = 361,
146
- ENCLOSEATTR = 362,
147
- ENCLOSETEXT = 363,
148
- BOLD = 364,
149
- BOXED = 365,
150
- FBOX = 366,
151
- HBOX = 367,
152
- MBOX = 368,
153
- BCANCELED = 369,
154
- XCANCELED = 370,
155
- CANCELEDTO = 371,
156
- NOT = 372,
157
- SLASHED = 373,
158
- PMB = 374,
159
- SCR = 375,
160
- RM = 376,
161
- BB = 377,
162
- ST = 378,
163
- END = 379,
164
- BBLOWERCHAR = 380,
165
- BBUPPERCHAR = 381,
166
- BBDIGIT = 382,
167
- CALCHAR = 383,
168
- FRAKCHAR = 384,
169
- CAL = 385,
170
- FRAK = 386,
171
- CLAP = 387,
172
- LLAP = 388,
173
- RLAP = 389,
174
- ROWOPTS = 390,
175
- TEXTSIZE = 391,
176
- OLDSTYLE = 392,
177
- SCSIZE = 393,
178
- SCSCSIZE = 394,
179
- TINY = 395,
180
- TTINY = 396,
181
- SMALL = 397,
182
- NORMALSIZE = 398,
183
- LARGE = 399,
184
- LLARGE = 400,
185
- LLLARGE = 401,
186
- HUGE = 402,
187
- HHUGE = 403,
188
- DISPLAY = 404,
189
- TEXTSTY = 405,
190
- SCRIPTSCRIPTSTYLE = 406,
191
- TEXTBOX = 407,
192
- TEXTSTRING = 408,
193
- VERBBOX = 409,
194
- VERBSTRING = 410,
195
- ACUTE = 411,
196
- GRAVE = 412,
197
- BREVE = 413,
198
- MATHRING = 414,
199
- XMLSTRING = 415,
200
- CELLOPTS = 416,
201
- ROWSPAN = 417,
202
- COLSPAN = 418,
203
- THINSPACE = 419,
204
- ENSPACE = 420,
205
- MEDSPACE = 421,
206
- THICKSPACE = 422,
207
- QUAD = 423,
208
- QQUAD = 424,
209
- NEGSPACE = 425,
210
- NEGMEDSPACE = 426,
211
- NEGTHICKSPACE = 427,
212
- STRUT = 428,
213
- MATHSTRUT = 429,
214
- SMASH = 430,
215
- PHANTOM = 431,
216
- HPHANTOM = 432,
217
- VPHANTOM = 433,
218
- HREF = 434,
219
- UNKNOWNCHAR = 435,
220
- EMPTYMROW = 436,
221
- STATLINE = 437,
222
- TOOLTIP = 438,
223
- TOGGLE = 439,
224
- TOGGLESTART = 440,
225
- TOGGLEEND = 441,
226
- FGHIGHLIGHT = 442,
227
- BGHIGHLIGHT = 443,
228
- COLORBOX = 444,
229
- SPACE = 445,
230
- PIXSIZE = 446,
231
- INTONE = 447,
232
- INTTWO = 448,
233
- INTTHREE = 449,
234
- OVERLEFTARROW = 450,
235
- OVERLEFTRIGHTARROW = 451,
236
- OVERRIGHTARROW = 452,
237
- UNDERLEFTARROW = 453,
238
- UNDERLEFTRIGHTARROW = 454,
239
- UNDERRIGHTARROW = 455,
240
- BAR = 456,
241
- WIDEBAR = 457,
242
- VEC = 458,
243
- WIDEVEC = 459,
244
- HAT = 460,
245
- WIDEHAT = 461,
246
- CHECK = 462,
247
- WIDECHECK = 463,
248
- TILDE = 464,
249
- WIDETILDE = 465,
250
- DOT = 466,
251
- DDOT = 467,
252
- DDDOT = 468,
253
- DDDDOT = 469,
254
- UNARYMINUS = 470,
255
- UNARYPLUS = 471,
256
- BEGINENV = 472,
257
- ENDENV = 473,
258
- EQUATION = 474,
259
- EQUATION_STAR = 475,
260
- EQALIGN = 476,
261
- EQALIGNNO = 477,
262
- MATRIX = 478,
263
- PMATRIX = 479,
264
- BMATRIX = 480,
265
- BBMATRIX = 481,
266
- VMATRIX = 482,
267
- VVMATRIX = 483,
268
- SVG = 484,
269
- ENDSVG = 485,
270
- SMALLMATRIX = 486,
271
- CASES = 487,
272
- ALIGNED = 488,
273
- ALIGNENV = 489,
274
- ALIGNENV_STAR = 490,
275
- ALIGNAT = 491,
276
- ALIGNAT_STAR = 492,
277
- ALIGNEDAT = 493,
278
- GATHERED = 494,
279
- GATHER_STAR = 495,
280
- GATHER = 496,
281
- SUBSTACK = 497,
282
- BMOD = 498,
283
- PMOD = 499,
284
- POD = 500,
285
- RMCHAR = 501,
286
- SCRCHAR = 502,
287
- PMBCHAR = 503,
288
- COLOR = 504,
289
- BGCOLOR = 505,
290
- XARROW = 506,
291
- OPTARGOPEN = 507,
292
- OPTARGCLOSE = 508,
293
- MTEXNUM = 509,
294
- RAISEBOX = 510,
295
- NEG = 511,
296
- LATEXSYMBOL = 512,
297
- TEXSYMBOL = 513,
298
- VARINJLIM = 514,
299
- VARLIMINF = 515,
300
- VARLIMSUP = 516,
301
- VARPROJLIM = 517
302
- };
46
+ enum yytokentype
47
+ {
48
+ TEXOVER = 258,
49
+ TEXOVERWITHDELIMS = 259,
50
+ TEXATOP = 260,
51
+ TEXATOPWITHDELIMS = 261,
52
+ TEXABOVE = 262,
53
+ TEXABOVEWITHDELIMS = 263,
54
+ CHAR = 264,
55
+ STARTMATH = 265,
56
+ STARTDMATH = 266,
57
+ ENDMATH = 267,
58
+ MTEXT = 268,
59
+ MI = 269,
60
+ MIB = 270,
61
+ MN = 271,
62
+ MO = 272,
63
+ LIMITS = 273,
64
+ NOLIMITS = 274,
65
+ SUP = 275,
66
+ SUB = 276,
67
+ MROWOPEN = 277,
68
+ MROWCLOSE = 278,
69
+ MATHOPEN = 279,
70
+ MATHCLOSE = 280,
71
+ MATHORD = 281,
72
+ MATHPUNCT = 282,
73
+ VCENTER = 283,
74
+ LEFT = 284,
75
+ RIGHT = 285,
76
+ BIG = 286,
77
+ BBIG = 287,
78
+ BIGG = 288,
79
+ BBIGG = 289,
80
+ BIGL = 290,
81
+ BBIGL = 291,
82
+ BIGGL = 292,
83
+ BBIGGL = 293,
84
+ BIGM = 294,
85
+ BBIGM = 295,
86
+ BIGGM = 296,
87
+ BBIGGM = 297,
88
+ FRAC = 298,
89
+ TFRAC = 299,
90
+ DFRAC = 300,
91
+ CFRAC = 301,
92
+ GENFRAC = 302,
93
+ OPERATORNAME = 303,
94
+ MATHOP = 304,
95
+ MATHBIN = 305,
96
+ MATHREL = 306,
97
+ MATHINNER = 307,
98
+ MOP = 308,
99
+ MOL = 309,
100
+ MOLL = 310,
101
+ MOF = 311,
102
+ MOR = 312,
103
+ PERIODDELIM = 313,
104
+ COMMADELIM = 314,
105
+ OTHERDELIM = 315,
106
+ LEFTDELIM = 316,
107
+ RIGHTDELIM = 317,
108
+ MOS = 318,
109
+ MOB = 319,
110
+ SQRT = 320,
111
+ ROOT = 321,
112
+ OF = 322,
113
+ LEFTROOT = 323,
114
+ UPROOT = 324,
115
+ BINOM = 325,
116
+ TBINOM = 326,
117
+ BRACE = 327,
118
+ BRACK = 328,
119
+ CHOOSE = 329,
120
+ DBINOM = 330,
121
+ UNDER = 331,
122
+ BUILDREL = 332,
123
+ OVER = 333,
124
+ OVERBRACE = 334,
125
+ OVERBRACKET = 335,
126
+ UNDERLINE = 336,
127
+ UNDERBRACE = 337,
128
+ UNDERBRACKET = 338,
129
+ UNDEROVER = 339,
130
+ TENSOR = 340,
131
+ MULTI = 341,
132
+ ALIGNATVALUE = 342,
133
+ ARRAYALIGN = 343,
134
+ COLUMNALIGN = 344,
135
+ ARRAY = 345,
136
+ SPACECUBE = 346,
137
+ HSPACE = 347,
138
+ MOVELEFT = 348,
139
+ MOVERIGHT = 349,
140
+ RAISE = 350,
141
+ LOWER = 351,
142
+ PXSTRING = 352,
143
+ COLSEP = 353,
144
+ ROWSEP = 354,
145
+ ARRAYOPTS = 355,
146
+ COLLAYOUT = 356,
147
+ COLALIGN = 357,
148
+ ROWALIGN = 358,
149
+ ALIGN = 359,
150
+ EQROWS = 360,
151
+ EQCOLS = 361,
152
+ ROWLINES = 362,
153
+ COLLINES = 363,
154
+ FRAME = 364,
155
+ PADDING = 365,
156
+ ATTRLIST = 366,
157
+ ITALICS = 367,
158
+ SANS = 368,
159
+ TT = 369,
160
+ ENCLOSE = 370,
161
+ ENCLOSENOTATION = 371,
162
+ ENCLOSEATTR = 372,
163
+ ENCLOSETEXT = 373,
164
+ BOLD = 374,
165
+ BOXED = 375,
166
+ FBOX = 376,
167
+ HBOX = 377,
168
+ MBOX = 378,
169
+ BCANCELED = 379,
170
+ XCANCELED = 380,
171
+ CANCELEDTO = 381,
172
+ NOT = 382,
173
+ SLASHED = 383,
174
+ PMB = 384,
175
+ SCR = 385,
176
+ RM = 386,
177
+ BB = 387,
178
+ ST = 388,
179
+ END = 389,
180
+ BBLOWERCHAR = 390,
181
+ BBUPPERCHAR = 391,
182
+ BBDIGIT = 392,
183
+ CALCHAR = 393,
184
+ FRAKCHAR = 394,
185
+ CAL = 395,
186
+ FRAK = 396,
187
+ CLAP = 397,
188
+ LLAP = 398,
189
+ RLAP = 399,
190
+ ROWOPTS = 400,
191
+ TEXTSIZE = 401,
192
+ OLDSTYLE = 402,
193
+ SCSTY = 403,
194
+ SCSIZE = 404,
195
+ SCSCSIZE = 405,
196
+ TINY = 406,
197
+ TTINY = 407,
198
+ SMALL = 408,
199
+ NORMALSIZE = 409,
200
+ LARGE = 410,
201
+ LLARGE = 411,
202
+ LLLARGE = 412,
203
+ HUGE = 413,
204
+ HHUGE = 414,
205
+ DISPLAY = 415,
206
+ TEXTSTY = 416,
207
+ TEXTBOX = 417,
208
+ TEXTSTRING = 418,
209
+ COLORSTRING = 419,
210
+ STYLESTRING = 420,
211
+ VERBBOX = 421,
212
+ VERBSTRING = 422,
213
+ ACUTE = 423,
214
+ GRAVE = 424,
215
+ BREVE = 425,
216
+ MATHRING = 426,
217
+ XMLSTRING = 427,
218
+ CELLOPTS = 428,
219
+ ROWSPAN = 429,
220
+ COLSPAN = 430,
221
+ THINSPACE = 431,
222
+ ENSPACE = 432,
223
+ MEDSPACE = 433,
224
+ THICKSPACE = 434,
225
+ QUAD = 435,
226
+ QQUAD = 436,
227
+ NEGSPACE = 437,
228
+ NEGMEDSPACE = 438,
229
+ NEGTHICKSPACE = 439,
230
+ STRUT = 440,
231
+ MATHSTRUT = 441,
232
+ SMASH = 442,
233
+ PHANTOM = 443,
234
+ HPHANTOM = 444,
235
+ VPHANTOM = 445,
236
+ HREF = 446,
237
+ UNKNOWNCHAR = 447,
238
+ EMPTYMROW = 448,
239
+ STATLINE = 449,
240
+ TOOLTIP = 450,
241
+ TOGGLE = 451,
242
+ TOGGLESTART = 452,
243
+ TOGGLEEND = 453,
244
+ FGHIGHLIGHT = 454,
245
+ BGHIGHLIGHT = 455,
246
+ COLORBOX = 456,
247
+ SPACE = 457,
248
+ NUMBER = 458,
249
+ INTONE = 459,
250
+ INTTWO = 460,
251
+ INTTHREE = 461,
252
+ OVERLEFTARROW = 462,
253
+ OVERLEFTRIGHTARROW = 463,
254
+ OVERRIGHTARROW = 464,
255
+ UNDERLEFTARROW = 465,
256
+ UNDERLEFTRIGHTARROW = 466,
257
+ UNDERRIGHTARROW = 467,
258
+ BAR = 468,
259
+ WIDEBAR = 469,
260
+ SKEW = 470,
261
+ VEC = 471,
262
+ WIDEVEC = 472,
263
+ HAT = 473,
264
+ WIDEHAT = 474,
265
+ CHECK = 475,
266
+ WIDECHECK = 476,
267
+ TILDE = 477,
268
+ WIDETILDE = 478,
269
+ DOT = 479,
270
+ DDOT = 480,
271
+ DDDOT = 481,
272
+ DDDDOT = 482,
273
+ UNARYMINUS = 483,
274
+ UNARYPLUS = 484,
275
+ BEGINENV = 485,
276
+ ENDENV = 486,
277
+ EQUATION = 487,
278
+ EQUATION_STAR = 488,
279
+ EQALIGN = 489,
280
+ EQALIGNNO = 490,
281
+ MATRIX = 491,
282
+ PMATRIX = 492,
283
+ BMATRIX = 493,
284
+ BBMATRIX = 494,
285
+ VMATRIX = 495,
286
+ VVMATRIX = 496,
287
+ SUBARRAY = 497,
288
+ SVG = 498,
289
+ ENDSVG = 499,
290
+ SMALLMATRIX = 500,
291
+ CASES = 501,
292
+ ALIGNED = 502,
293
+ ALIGNENV = 503,
294
+ ALIGNENV_STAR = 504,
295
+ ALIGNAT = 505,
296
+ ALIGNAT_STAR = 506,
297
+ ALIGNEDAT = 507,
298
+ GATHERED = 508,
299
+ EQNARRAY = 509,
300
+ EQNARRAY_STAR = 510,
301
+ MULTLINE = 511,
302
+ MULTLINE_STAR = 512,
303
+ GATHER_STAR = 513,
304
+ GATHER = 514,
305
+ SUBSTACK = 515,
306
+ SIDESET = 516,
307
+ BMOD = 517,
308
+ PMOD = 518,
309
+ POD = 519,
310
+ RMCHAR = 520,
311
+ SCRCHAR = 521,
312
+ PMBCHAR = 522,
313
+ COLOR = 523,
314
+ BGCOLOR = 524,
315
+ BBOX = 525,
316
+ XARROW = 526,
317
+ OPTARGOPEN = 527,
318
+ OPTARGCLOSE = 528,
319
+ MTEXNUM = 529,
320
+ RAISEBOX = 530,
321
+ NEG = 531,
322
+ LATEXSYMBOL = 532,
323
+ TEXSYMBOL = 533,
324
+ VARINJLIM = 534,
325
+ VARLIMINF = 535,
326
+ VARLIMSUP = 536,
327
+ VARPROJLIM = 537
328
+ };
303
329
  #endif
304
330
  /* Tokens. */
305
- #define TEXABOVEWITHDELIMS 258
306
- #define TEXABOVE 259
307
- #define TEXATOPWITHDELIMS 260
308
- #define TEXATOP 261
309
- #define TEXOVERWITHDELIMS 262
310
- #define TEXOVER 263
331
+ #define TEXOVER 258
332
+ #define TEXOVERWITHDELIMS 259
333
+ #define TEXATOP 260
334
+ #define TEXATOPWITHDELIMS 261
335
+ #define TEXABOVE 262
336
+ #define TEXABOVEWITHDELIMS 263
311
337
  #define CHAR 264
312
338
  #define STARTMATH 265
313
339
  #define STARTDMATH 266
@@ -323,255 +349,276 @@
323
349
  #define SUB 276
324
350
  #define MROWOPEN 277
325
351
  #define MROWCLOSE 278
326
- #define LEFT 279
327
- #define RIGHT 280
328
- #define BIG 281
329
- #define BBIG 282
330
- #define BIGG 283
331
- #define BBIGG 284
332
- #define BIGL 285
333
- #define BBIGL 286
334
- #define BIGGL 287
335
- #define BBIGGL 288
336
- #define BIGM 289
337
- #define BBIGM 290
338
- #define BIGGM 291
339
- #define BBIGGM 292
340
- #define FRAC 293
341
- #define TFRAC 294
342
- #define DFRAC 295
343
- #define OPERATORNAME 296
344
- #define MATHOP 297
345
- #define MATHBIN 298
346
- #define MATHREL 299
347
- #define MATHINNER 300
348
- #define MOP 301
349
- #define MOL 302
350
- #define MOLL 303
351
- #define MOF 304
352
- #define MOR 305
353
- #define PERIODDELIM 306
354
- #define OTHERDELIM 307
355
- #define LEFTDELIM 308
356
- #define RIGHTDELIM 309
357
- #define MOS 310
358
- #define MOB 311
359
- #define SQRT 312
360
- #define ROOT 313
361
- #define BINOM 314
362
- #define TBINOM 315
363
- #define BRACE 316
364
- #define BRACK 317
365
- #define CHOOSE 318
366
- #define DBINOM 319
367
- #define UNDER 320
368
- #define OVER 321
369
- #define OVERBRACE 322
370
- #define OVERBRACKET 323
371
- #define UNDERLINE 324
372
- #define UNDERBRACE 325
373
- #define UNDERBRACKET 326
374
- #define UNDEROVER 327
375
- #define TENSOR 328
376
- #define MULTI 329
377
- #define ALIGNATVALUE 330
378
- #define ARRAYALIGN 331
379
- #define COLUMNALIGN 332
380
- #define ARRAY 333
381
- #define SPACECUBE 334
382
- #define HSPACE 335
383
- #define MOVELEFT 336
384
- #define MOVERIGHT 337
385
- #define RAISE 338
386
- #define RAISESTRING 339
387
- #define LOWER 340
388
- #define LOWERSTRING 341
389
- #define PXSTRING 342
390
- #define COLSEP 343
391
- #define ROWSEP 344
392
- #define ARRAYOPTS 345
393
- #define COLLAYOUT 346
394
- #define COLALIGN 347
395
- #define ROWALIGN 348
396
- #define ALIGN 349
397
- #define EQROWS 350
398
- #define EQCOLS 351
399
- #define ROWLINES 352
400
- #define COLLINES 353
401
- #define FRAME 354
402
- #define PADDING 355
403
- #define ATTRLIST 356
404
- #define ITALICS 357
405
- #define SANS 358
406
- #define TT 359
407
- #define ENCLOSE 360
408
- #define ENCLOSENOTATION 361
409
- #define ENCLOSEATTR 362
410
- #define ENCLOSETEXT 363
411
- #define BOLD 364
412
- #define BOXED 365
413
- #define FBOX 366
414
- #define HBOX 367
415
- #define MBOX 368
416
- #define BCANCELED 369
417
- #define XCANCELED 370
418
- #define CANCELEDTO 371
419
- #define NOT 372
420
- #define SLASHED 373
421
- #define PMB 374
422
- #define SCR 375
423
- #define RM 376
424
- #define BB 377
425
- #define ST 378
426
- #define END 379
427
- #define BBLOWERCHAR 380
428
- #define BBUPPERCHAR 381
429
- #define BBDIGIT 382
430
- #define CALCHAR 383
431
- #define FRAKCHAR 384
432
- #define CAL 385
433
- #define FRAK 386
434
- #define CLAP 387
435
- #define LLAP 388
436
- #define RLAP 389
437
- #define ROWOPTS 390
438
- #define TEXTSIZE 391
439
- #define OLDSTYLE 392
440
- #define SCSIZE 393
441
- #define SCSCSIZE 394
442
- #define TINY 395
443
- #define TTINY 396
444
- #define SMALL 397
445
- #define NORMALSIZE 398
446
- #define LARGE 399
447
- #define LLARGE 400
448
- #define LLLARGE 401
449
- #define HUGE 402
450
- #define HHUGE 403
451
- #define DISPLAY 404
452
- #define TEXTSTY 405
453
- #define SCRIPTSCRIPTSTYLE 406
454
- #define TEXTBOX 407
455
- #define TEXTSTRING 408
456
- #define VERBBOX 409
457
- #define VERBSTRING 410
458
- #define ACUTE 411
459
- #define GRAVE 412
460
- #define BREVE 413
461
- #define MATHRING 414
462
- #define XMLSTRING 415
463
- #define CELLOPTS 416
464
- #define ROWSPAN 417
465
- #define COLSPAN 418
466
- #define THINSPACE 419
467
- #define ENSPACE 420
468
- #define MEDSPACE 421
469
- #define THICKSPACE 422
470
- #define QUAD 423
471
- #define QQUAD 424
472
- #define NEGSPACE 425
473
- #define NEGMEDSPACE 426
474
- #define NEGTHICKSPACE 427
475
- #define STRUT 428
476
- #define MATHSTRUT 429
477
- #define SMASH 430
478
- #define PHANTOM 431
479
- #define HPHANTOM 432
480
- #define VPHANTOM 433
481
- #define HREF 434
482
- #define UNKNOWNCHAR 435
483
- #define EMPTYMROW 436
484
- #define STATLINE 437
485
- #define TOOLTIP 438
486
- #define TOGGLE 439
487
- #define TOGGLESTART 440
488
- #define TOGGLEEND 441
489
- #define FGHIGHLIGHT 442
490
- #define BGHIGHLIGHT 443
491
- #define COLORBOX 444
492
- #define SPACE 445
493
- #define PIXSIZE 446
494
- #define INTONE 447
495
- #define INTTWO 448
496
- #define INTTHREE 449
497
- #define OVERLEFTARROW 450
498
- #define OVERLEFTRIGHTARROW 451
499
- #define OVERRIGHTARROW 452
500
- #define UNDERLEFTARROW 453
501
- #define UNDERLEFTRIGHTARROW 454
502
- #define UNDERRIGHTARROW 455
503
- #define BAR 456
504
- #define WIDEBAR 457
505
- #define VEC 458
506
- #define WIDEVEC 459
507
- #define HAT 460
508
- #define WIDEHAT 461
509
- #define CHECK 462
510
- #define WIDECHECK 463
511
- #define TILDE 464
512
- #define WIDETILDE 465
513
- #define DOT 466
514
- #define DDOT 467
515
- #define DDDOT 468
516
- #define DDDDOT 469
517
- #define UNARYMINUS 470
518
- #define UNARYPLUS 471
519
- #define BEGINENV 472
520
- #define ENDENV 473
521
- #define EQUATION 474
522
- #define EQUATION_STAR 475
523
- #define EQALIGN 476
524
- #define EQALIGNNO 477
525
- #define MATRIX 478
526
- #define PMATRIX 479
527
- #define BMATRIX 480
528
- #define BBMATRIX 481
529
- #define VMATRIX 482
530
- #define VVMATRIX 483
531
- #define SVG 484
532
- #define ENDSVG 485
533
- #define SMALLMATRIX 486
534
- #define CASES 487
535
- #define ALIGNED 488
536
- #define ALIGNENV 489
537
- #define ALIGNENV_STAR 490
538
- #define ALIGNAT 491
539
- #define ALIGNAT_STAR 492
540
- #define ALIGNEDAT 493
541
- #define GATHERED 494
542
- #define GATHER_STAR 495
543
- #define GATHER 496
544
- #define SUBSTACK 497
545
- #define BMOD 498
546
- #define PMOD 499
547
- #define POD 500
548
- #define RMCHAR 501
549
- #define SCRCHAR 502
550
- #define PMBCHAR 503
551
- #define COLOR 504
552
- #define BGCOLOR 505
553
- #define XARROW 506
554
- #define OPTARGOPEN 507
555
- #define OPTARGCLOSE 508
556
- #define MTEXNUM 509
557
- #define RAISEBOX 510
558
- #define NEG 511
559
- #define LATEXSYMBOL 512
560
- #define TEXSYMBOL 513
561
- #define VARINJLIM 514
562
- #define VARLIMINF 515
563
- #define VARLIMSUP 516
564
- #define VARPROJLIM 517
565
-
566
-
567
-
352
+ #define MATHOPEN 279
353
+ #define MATHCLOSE 280
354
+ #define MATHORD 281
355
+ #define MATHPUNCT 282
356
+ #define VCENTER 283
357
+ #define LEFT 284
358
+ #define RIGHT 285
359
+ #define BIG 286
360
+ #define BBIG 287
361
+ #define BIGG 288
362
+ #define BBIGG 289
363
+ #define BIGL 290
364
+ #define BBIGL 291
365
+ #define BIGGL 292
366
+ #define BBIGGL 293
367
+ #define BIGM 294
368
+ #define BBIGM 295
369
+ #define BIGGM 296
370
+ #define BBIGGM 297
371
+ #define FRAC 298
372
+ #define TFRAC 299
373
+ #define DFRAC 300
374
+ #define CFRAC 301
375
+ #define GENFRAC 302
376
+ #define OPERATORNAME 303
377
+ #define MATHOP 304
378
+ #define MATHBIN 305
379
+ #define MATHREL 306
380
+ #define MATHINNER 307
381
+ #define MOP 308
382
+ #define MOL 309
383
+ #define MOLL 310
384
+ #define MOF 311
385
+ #define MOR 312
386
+ #define PERIODDELIM 313
387
+ #define COMMADELIM 314
388
+ #define OTHERDELIM 315
389
+ #define LEFTDELIM 316
390
+ #define RIGHTDELIM 317
391
+ #define MOS 318
392
+ #define MOB 319
393
+ #define SQRT 320
394
+ #define ROOT 321
395
+ #define OF 322
396
+ #define LEFTROOT 323
397
+ #define UPROOT 324
398
+ #define BINOM 325
399
+ #define TBINOM 326
400
+ #define BRACE 327
401
+ #define BRACK 328
402
+ #define CHOOSE 329
403
+ #define DBINOM 330
404
+ #define UNDER 331
405
+ #define BUILDREL 332
406
+ #define OVER 333
407
+ #define OVERBRACE 334
408
+ #define OVERBRACKET 335
409
+ #define UNDERLINE 336
410
+ #define UNDERBRACE 337
411
+ #define UNDERBRACKET 338
412
+ #define UNDEROVER 339
413
+ #define TENSOR 340
414
+ #define MULTI 341
415
+ #define ALIGNATVALUE 342
416
+ #define ARRAYALIGN 343
417
+ #define COLUMNALIGN 344
418
+ #define ARRAY 345
419
+ #define SPACECUBE 346
420
+ #define HSPACE 347
421
+ #define MOVELEFT 348
422
+ #define MOVERIGHT 349
423
+ #define RAISE 350
424
+ #define LOWER 351
425
+ #define PXSTRING 352
426
+ #define COLSEP 353
427
+ #define ROWSEP 354
428
+ #define ARRAYOPTS 355
429
+ #define COLLAYOUT 356
430
+ #define COLALIGN 357
431
+ #define ROWALIGN 358
432
+ #define ALIGN 359
433
+ #define EQROWS 360
434
+ #define EQCOLS 361
435
+ #define ROWLINES 362
436
+ #define COLLINES 363
437
+ #define FRAME 364
438
+ #define PADDING 365
439
+ #define ATTRLIST 366
440
+ #define ITALICS 367
441
+ #define SANS 368
442
+ #define TT 369
443
+ #define ENCLOSE 370
444
+ #define ENCLOSENOTATION 371
445
+ #define ENCLOSEATTR 372
446
+ #define ENCLOSETEXT 373
447
+ #define BOLD 374
448
+ #define BOXED 375
449
+ #define FBOX 376
450
+ #define HBOX 377
451
+ #define MBOX 378
452
+ #define BCANCELED 379
453
+ #define XCANCELED 380
454
+ #define CANCELEDTO 381
455
+ #define NOT 382
456
+ #define SLASHED 383
457
+ #define PMB 384
458
+ #define SCR 385
459
+ #define RM 386
460
+ #define BB 387
461
+ #define ST 388
462
+ #define END 389
463
+ #define BBLOWERCHAR 390
464
+ #define BBUPPERCHAR 391
465
+ #define BBDIGIT 392
466
+ #define CALCHAR 393
467
+ #define FRAKCHAR 394
468
+ #define CAL 395
469
+ #define FRAK 396
470
+ #define CLAP 397
471
+ #define LLAP 398
472
+ #define RLAP 399
473
+ #define ROWOPTS 400
474
+ #define TEXTSIZE 401
475
+ #define OLDSTYLE 402
476
+ #define SCSTY 403
477
+ #define SCSIZE 404
478
+ #define SCSCSIZE 405
479
+ #define TINY 406
480
+ #define TTINY 407
481
+ #define SMALL 408
482
+ #define NORMALSIZE 409
483
+ #define LARGE 410
484
+ #define LLARGE 411
485
+ #define LLLARGE 412
486
+ #define HUGE 413
487
+ #define HHUGE 414
488
+ #define DISPLAY 415
489
+ #define TEXTSTY 416
490
+ #define TEXTBOX 417
491
+ #define TEXTSTRING 418
492
+ #define COLORSTRING 419
493
+ #define STYLESTRING 420
494
+ #define VERBBOX 421
495
+ #define VERBSTRING 422
496
+ #define ACUTE 423
497
+ #define GRAVE 424
498
+ #define BREVE 425
499
+ #define MATHRING 426
500
+ #define XMLSTRING 427
501
+ #define CELLOPTS 428
502
+ #define ROWSPAN 429
503
+ #define COLSPAN 430
504
+ #define THINSPACE 431
505
+ #define ENSPACE 432
506
+ #define MEDSPACE 433
507
+ #define THICKSPACE 434
508
+ #define QUAD 435
509
+ #define QQUAD 436
510
+ #define NEGSPACE 437
511
+ #define NEGMEDSPACE 438
512
+ #define NEGTHICKSPACE 439
513
+ #define STRUT 440
514
+ #define MATHSTRUT 441
515
+ #define SMASH 442
516
+ #define PHANTOM 443
517
+ #define HPHANTOM 444
518
+ #define VPHANTOM 445
519
+ #define HREF 446
520
+ #define UNKNOWNCHAR 447
521
+ #define EMPTYMROW 448
522
+ #define STATLINE 449
523
+ #define TOOLTIP 450
524
+ #define TOGGLE 451
525
+ #define TOGGLESTART 452
526
+ #define TOGGLEEND 453
527
+ #define FGHIGHLIGHT 454
528
+ #define BGHIGHLIGHT 455
529
+ #define COLORBOX 456
530
+ #define SPACE 457
531
+ #define NUMBER 458
532
+ #define INTONE 459
533
+ #define INTTWO 460
534
+ #define INTTHREE 461
535
+ #define OVERLEFTARROW 462
536
+ #define OVERLEFTRIGHTARROW 463
537
+ #define OVERRIGHTARROW 464
538
+ #define UNDERLEFTARROW 465
539
+ #define UNDERLEFTRIGHTARROW 466
540
+ #define UNDERRIGHTARROW 467
541
+ #define BAR 468
542
+ #define WIDEBAR 469
543
+ #define SKEW 470
544
+ #define VEC 471
545
+ #define WIDEVEC 472
546
+ #define HAT 473
547
+ #define WIDEHAT 474
548
+ #define CHECK 475
549
+ #define WIDECHECK 476
550
+ #define TILDE 477
551
+ #define WIDETILDE 478
552
+ #define DOT 479
553
+ #define DDOT 480
554
+ #define DDDOT 481
555
+ #define DDDDOT 482
556
+ #define UNARYMINUS 483
557
+ #define UNARYPLUS 484
558
+ #define BEGINENV 485
559
+ #define ENDENV 486
560
+ #define EQUATION 487
561
+ #define EQUATION_STAR 488
562
+ #define EQALIGN 489
563
+ #define EQALIGNNO 490
564
+ #define MATRIX 491
565
+ #define PMATRIX 492
566
+ #define BMATRIX 493
567
+ #define BBMATRIX 494
568
+ #define VMATRIX 495
569
+ #define VVMATRIX 496
570
+ #define SUBARRAY 497
571
+ #define SVG 498
572
+ #define ENDSVG 499
573
+ #define SMALLMATRIX 500
574
+ #define CASES 501
575
+ #define ALIGNED 502
576
+ #define ALIGNENV 503
577
+ #define ALIGNENV_STAR 504
578
+ #define ALIGNAT 505
579
+ #define ALIGNAT_STAR 506
580
+ #define ALIGNEDAT 507
581
+ #define GATHERED 508
582
+ #define EQNARRAY 509
583
+ #define EQNARRAY_STAR 510
584
+ #define MULTLINE 511
585
+ #define MULTLINE_STAR 512
586
+ #define GATHER_STAR 513
587
+ #define GATHER 514
588
+ #define SUBSTACK 515
589
+ #define SIDESET 516
590
+ #define BMOD 517
591
+ #define PMOD 518
592
+ #define POD 519
593
+ #define RMCHAR 520
594
+ #define SCRCHAR 521
595
+ #define PMBCHAR 522
596
+ #define COLOR 523
597
+ #define BGCOLOR 524
598
+ #define BBOX 525
599
+ #define XARROW 526
600
+ #define OPTARGOPEN 527
601
+ #define OPTARGCLOSE 528
602
+ #define MTEXNUM 529
603
+ #define RAISEBOX 530
604
+ #define NEG 531
605
+ #define LATEXSYMBOL 532
606
+ #define TEXSYMBOL 533
607
+ #define VARINJLIM 534
608
+ #define VARLIMINF 535
609
+ #define VARLIMSUP 536
610
+ #define VARPROJLIM 537
568
611
 
612
+ /* Value type. */
569
613
  #if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
570
614
  typedef int YYSTYPE;
571
- # define yystype YYSTYPE /* obsolescent; will be withdrawn */
572
- # define YYSTYPE_IS_DECLARED 1
573
615
  # define YYSTYPE_IS_TRIVIAL 1
616
+ # define YYSTYPE_IS_DECLARED 1
574
617
  #endif
575
618
 
619
+
576
620
  extern YYSTYPE mtex2MML_yylval;
577
621
 
622
+ int mtex2MML_yyparse (char **ret_str);
623
+
624
+ #endif /* !YY_MTEX2MML_YY_Y_TAB_H_INCLUDED */