2251 lines
80 KiB

  1. /* A Bison parser, made by GNU Bison 2.4.2. */
  2. /* Skeleton implementation for Bison LALR(1) parsers in C++
  3. Copyright (C) 2002-2010 Free Software Foundation, Inc.
  4. This program is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program. If not, see <http://www.gnu.org/licenses/>. */
  14. /* As a special exception, you may create a larger work that contains
  15. part or all of the Bison parser skeleton and distribute that work
  16. under terms of your choice, so long as that work isn't itself a
  17. parser generator using the skeleton or a modified version thereof
  18. as a parser skeleton. Alternatively, if you modify or redistribute
  19. the parser skeleton itself, you may (at your option) remove this
  20. special exception, which will cause the skeleton and the resulting
  21. Bison output files to be licensed under the GNU General Public
  22. License without this special exception.
  23. This special exception was added by the Free Software Foundation in
  24. version 2.2 of Bison. */
  25. // Take the name prefix into account.
  26. #define yylex lollex
  27. /* First part of user declarations. */
  28. /* Line 310 of lalr1.cc */
  29. #line 1 "easymesh/easymesh-parser.y"
  30. //
  31. // Lol Engine
  32. //
  33. // Copyright: (c) 2010-2013 Sam Hocevar <sam@hocevar.net>
  34. // (c) 2009-2013 Cédric Lecacheur <jordx@free.fr>
  35. // (c) 2009-2013 Benjamin "Touky" Huet <huet.benjamin@gmail.com>
  36. // This program is free software; you can redistribute it and/or
  37. // modify it under the terms of the Do What The Fuck You Want To
  38. // Public License, Version 2, as published by Sam Hocevar. See
  39. // http://www.wtfpl.net/ for more details.
  40. //
  41. #include <lol/engine-internal.h>
  42. #include "easymesh/easymesh.h"
  43. #include <string>
  44. /* Line 310 of lalr1.cc */
  45. #line 65 "generated/easymesh-parser.cpp"
  46. #include "easymesh-parser.h"
  47. /* User implementation prologue. */
  48. /* Line 316 of lalr1.cc */
  49. #line 81 "easymesh/easymesh-parser.y"
  50. #include "easymesh/easymesh-compiler.h"
  51. #undef yylex
  52. #define yylex mc.m_lexer->lex
  53. /* HACK: workaround for Bison who insists on using exceptions */
  54. #define try if (true)
  55. #define catch(...) if (false)
  56. #define throw (void)0
  57. /* Line 316 of lalr1.cc */
  58. #line 87 "generated/easymesh-parser.cpp"
  59. #ifndef YY_
  60. # if defined YYENABLE_NLS && YYENABLE_NLS
  61. # if ENABLE_NLS
  62. # include <libintl.h> /* FIXME: INFRINGES ON USER NAME SPACE */
  63. # define YY_(msgid) dgettext ("bison-runtime", msgid)
  64. # endif
  65. # endif
  66. # ifndef YY_
  67. # define YY_(msgid) msgid
  68. # endif
  69. #endif
  70. /* Suppress unused-variable warnings by "using" E. */
  71. #define YYUSE(e) ((void) (e))
  72. /* Enable debugging if requested. */
  73. #if YYDEBUG
  74. /* A pseudo ostream that takes yydebug_ into account. */
  75. # define YYCDEBUG if (yydebug_) (*yycdebug_)
  76. # define YY_SYMBOL_PRINT(Title, Type, Value, Location) \
  77. do { \
  78. if (yydebug_) \
  79. { \
  80. *yycdebug_ << Title << ' '; \
  81. yy_symbol_print_ ((Type), (Value), (Location)); \
  82. *yycdebug_ << std::endl; \
  83. } \
  84. } while (false)
  85. # define YY_REDUCE_PRINT(Rule) \
  86. do { \
  87. if (yydebug_) \
  88. yy_reduce_print_ (Rule); \
  89. } while (false)
  90. # define YY_STACK_PRINT() \
  91. do { \
  92. if (yydebug_) \
  93. yystack_print_ (); \
  94. } while (false)
  95. #else /* !YYDEBUG */
  96. # define YYCDEBUG if (false) std::cerr
  97. # define YY_SYMBOL_PRINT(Title, Type, Value, Location)
  98. # define YY_REDUCE_PRINT(Rule)
  99. # define YY_STACK_PRINT()
  100. #endif /* !YYDEBUG */
  101. #define yyerrok (yyerrstatus_ = 0)
  102. #define yyclearin (yychar = yyempty_)
  103. #define YYACCEPT goto yyacceptlab
  104. #define YYABORT goto yyabortlab
  105. #define YYERROR goto yyerrorlab
  106. #define YYRECOVERING() (!!yyerrstatus_)
  107. namespace lol {
  108. /* Line 379 of lalr1.cc */
  109. #line 153 "generated/easymesh-parser.cpp"
  110. #if YYERROR_VERBOSE
  111. /* Return YYSTR after stripping away unnecessary quotes and
  112. backslashes, so that it's suitable for yyerror. The heuristic is
  113. that double-quoting is unnecessary unless the string contains an
  114. apostrophe, a comma, or backslash (other than backslash-backslash).
  115. YYSTR is taken from yytname. */
  116. std::string
  117. EasyMeshParser::yytnamerr_ (const char *yystr)
  118. {
  119. if (*yystr == '"')
  120. {
  121. std::string yyr = "";
  122. char const *yyp = yystr;
  123. for (;;)
  124. switch (*++yyp)
  125. {
  126. case '\'':
  127. case ',':
  128. goto do_not_strip_quotes;
  129. case '\\':
  130. if (*++yyp != '\\')
  131. goto do_not_strip_quotes;
  132. /* Fall through. */
  133. default:
  134. yyr += *yyp;
  135. break;
  136. case '"':
  137. return yyr;
  138. }
  139. do_not_strip_quotes: ;
  140. }
  141. return yystr;
  142. }
  143. #endif
  144. /// Build a parser object.
  145. EasyMeshParser::EasyMeshParser (class EasyMeshCompiler& mc_yyarg)
  146. :
  147. #if YYDEBUG
  148. yydebug_ (false),
  149. yycdebug_ (&std::cerr),
  150. #endif
  151. mc (mc_yyarg)
  152. {
  153. }
  154. EasyMeshParser::~EasyMeshParser ()
  155. {
  156. }
  157. #if YYDEBUG
  158. /*--------------------------------.
  159. | Print this symbol on YYOUTPUT. |
  160. `--------------------------------*/
  161. inline void
  162. EasyMeshParser::yy_symbol_value_print_ (int yytype,
  163. const semantic_type* yyvaluep, const location_type* yylocationp)
  164. {
  165. YYUSE (yylocationp);
  166. YYUSE (yyvaluep);
  167. switch (yytype)
  168. {
  169. default:
  170. break;
  171. }
  172. }
  173. void
  174. EasyMeshParser::yy_symbol_print_ (int yytype,
  175. const semantic_type* yyvaluep, const location_type* yylocationp)
  176. {
  177. *yycdebug_ << (yytype < yyntokens_ ? "token" : "nterm")
  178. << ' ' << yytname_[yytype] << " ("
  179. << *yylocationp << ": ";
  180. yy_symbol_value_print_ (yytype, yyvaluep, yylocationp);
  181. *yycdebug_ << ')';
  182. }
  183. #endif
  184. void
  185. EasyMeshParser::yydestruct_ (const char* yymsg,
  186. int yytype, semantic_type* yyvaluep, location_type* yylocationp)
  187. {
  188. YYUSE (yylocationp);
  189. YYUSE (yymsg);
  190. YYUSE (yyvaluep);
  191. YY_SYMBOL_PRINT (yymsg, yytype, yyvaluep, yylocationp);
  192. switch (yytype)
  193. {
  194. default:
  195. break;
  196. }
  197. }
  198. void
  199. EasyMeshParser::yypop_ (unsigned int n)
  200. {
  201. yystate_stack_.pop (n);
  202. yysemantic_stack_.pop (n);
  203. yylocation_stack_.pop (n);
  204. }
  205. #if YYDEBUG
  206. std::ostream&
  207. EasyMeshParser::debug_stream () const
  208. {
  209. return *yycdebug_;
  210. }
  211. void
  212. EasyMeshParser::set_debug_stream (std::ostream& o)
  213. {
  214. yycdebug_ = &o;
  215. }
  216. EasyMeshParser::debug_level_type
  217. EasyMeshParser::debug_level () const
  218. {
  219. return yydebug_;
  220. }
  221. void
  222. EasyMeshParser::set_debug_level (debug_level_type l)
  223. {
  224. yydebug_ = l;
  225. }
  226. #endif
  227. int
  228. EasyMeshParser::parse ()
  229. {
  230. /// Lookahead and lookahead in internal form.
  231. int yychar = yyempty_;
  232. int yytoken = 0;
  233. /* State. */
  234. int yyn;
  235. int yylen = 0;
  236. int yystate = 0;
  237. /* Error handling. */
  238. int yynerrs_ = 0;
  239. int yyerrstatus_ = 0;
  240. /// Semantic value of the lookahead.
  241. semantic_type yylval;
  242. /// Location of the lookahead.
  243. location_type yylloc;
  244. /// The locations where the error started and ended.
  245. location_type yyerror_range[2];
  246. /// $$.
  247. semantic_type yyval;
  248. /// @$.
  249. location_type yyloc;
  250. int yyresult;
  251. YYCDEBUG << "Starting parse" << std::endl;
  252. /* Initialize the stacks. The initial state will be pushed in
  253. yynewstate, since the latter expects the semantical and the
  254. location values to have been already stored, initialize these
  255. stacks with a primary value. */
  256. yystate_stack_ = state_stack_type (0);
  257. yysemantic_stack_ = semantic_stack_type (0);
  258. yylocation_stack_ = location_stack_type (0);
  259. yysemantic_stack_.push (yylval);
  260. yylocation_stack_.push (yylloc);
  261. /* New state. */
  262. yynewstate:
  263. yystate_stack_.push (yystate);
  264. YYCDEBUG << "Entering state " << yystate << std::endl;
  265. /* Accept? */
  266. if (yystate == yyfinal_)
  267. goto yyacceptlab;
  268. goto yybackup;
  269. /* Backup. */
  270. yybackup:
  271. /* Try to take a decision without lookahead. */
  272. yyn = yypact_[yystate];
  273. if (yyn == yypact_ninf_)
  274. goto yydefault;
  275. /* Read a lookahead token. */
  276. if (yychar == yyempty_)
  277. {
  278. YYCDEBUG << "Reading a token: ";
  279. yychar = yylex (&yylval, &yylloc);
  280. }
  281. /* Convert token to internal form. */
  282. if (yychar <= yyeof_)
  283. {
  284. yychar = yytoken = yyeof_;
  285. YYCDEBUG << "Now at end of input." << std::endl;
  286. }
  287. else
  288. {
  289. yytoken = yytranslate_ (yychar);
  290. YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
  291. }
  292. /* If the proper action on seeing token YYTOKEN is to reduce or to
  293. detect an error, take that action. */
  294. yyn += yytoken;
  295. if (yyn < 0 || yylast_ < yyn || yycheck_[yyn] != yytoken)
  296. goto yydefault;
  297. /* Reduce or error. */
  298. yyn = yytable_[yyn];
  299. if (yyn <= 0)
  300. {
  301. if (yyn == 0 || yyn == yytable_ninf_)
  302. goto yyerrlab;
  303. yyn = -yyn;
  304. goto yyreduce;
  305. }
  306. /* Shift the lookahead token. */
  307. YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  308. /* Discard the token being shifted. */
  309. yychar = yyempty_;
  310. yysemantic_stack_.push (yylval);
  311. yylocation_stack_.push (yylloc);
  312. /* Count tokens shifted since error; after three, turn off error
  313. status. */
  314. if (yyerrstatus_)
  315. --yyerrstatus_;
  316. yystate = yyn;
  317. goto yynewstate;
  318. /*-----------------------------------------------------------.
  319. | yydefault -- do the default action for the current state. |
  320. `-----------------------------------------------------------*/
  321. yydefault:
  322. yyn = yydefact_[yystate];
  323. if (yyn == 0)
  324. goto yyerrlab;
  325. goto yyreduce;
  326. /*-----------------------------.
  327. | yyreduce -- Do a reduction. |
  328. `-----------------------------*/
  329. yyreduce:
  330. yylen = yyr2_[yyn];
  331. /* If YYLEN is nonzero, implement the default value of the action:
  332. `$$ = $1'. Otherwise, use the top of the stack.
  333. Otherwise, the following line sets YYVAL to garbage.
  334. This behavior is undocumented and Bison
  335. users should not rely upon it. */
  336. if (yylen)
  337. yyval = yysemantic_stack_[yylen - 1];
  338. else
  339. yyval = yysemantic_stack_[0];
  340. {
  341. slice<location_type, location_stack_type> slice (yylocation_stack_, yylen);
  342. YYLLOC_DEFAULT (yyloc, slice, yylen);
  343. }
  344. YY_REDUCE_PRINT (yyn);
  345. switch (yyn)
  346. {
  347. case 14:
  348. /* Line 677 of lalr1.cc */
  349. #line 120 "easymesh/easymesh-parser.y"
  350. { mc.m_mesh.LoopEnd(); }
  351. break;
  352. case 15:
  353. /* Line 677 of lalr1.cc */
  354. #line 124 "easymesh/easymesh-parser.y"
  355. { mc.m_mesh.CsgUnion(); mc.m_mesh.CloseBrace(); }
  356. break;
  357. case 16:
  358. /* Line 677 of lalr1.cc */
  359. #line 125 "easymesh/easymesh-parser.y"
  360. { mc.m_mesh.CsgSub(); mc.m_mesh.CloseBrace(); }
  361. break;
  362. case 17:
  363. /* Line 677 of lalr1.cc */
  364. #line 126 "easymesh/easymesh-parser.y"
  365. { mc.m_mesh.CsgSubL(); mc.m_mesh.CloseBrace(); }
  366. break;
  367. case 18:
  368. /* Line 677 of lalr1.cc */
  369. #line 127 "easymesh/easymesh-parser.y"
  370. { mc.m_mesh.CsgAnd(); mc.m_mesh.CloseBrace(); }
  371. break;
  372. case 19:
  373. /* Line 677 of lalr1.cc */
  374. #line 128 "easymesh/easymesh-parser.y"
  375. { mc.m_mesh.CsgXor(); mc.m_mesh.CloseBrace(); }
  376. break;
  377. case 20:
  378. /* Line 677 of lalr1.cc */
  379. #line 132 "easymesh/easymesh-parser.y"
  380. { mc.m_mesh.LoopStart((yysemantic_stack_[(2) - (2)].ival)); }
  381. break;
  382. case 21:
  383. /* Line 677 of lalr1.cc */
  384. #line 136 "easymesh/easymesh-parser.y"
  385. { mc.m_mesh.DupAndScale(vec3(1.f), true); }
  386. break;
  387. case 22:
  388. /* Line 677 of lalr1.cc */
  389. #line 140 "easymesh/easymesh-parser.y"
  390. { mc.m_mesh.OpenBrace(); }
  391. break;
  392. case 23:
  393. /* Line 677 of lalr1.cc */
  394. #line 144 "easymesh/easymesh-parser.y"
  395. { mc.m_mesh.CloseBrace(); }
  396. break;
  397. case 24:
  398. /* Line 677 of lalr1.cc */
  399. #line 148 "easymesh/easymesh-parser.y"
  400. { mc.m_mesh.SetCurColor(vec4((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].fval))); }
  401. break;
  402. case 25:
  403. /* Line 677 of lalr1.cc */
  404. #line 149 "easymesh/easymesh-parser.y"
  405. { mc.m_mesh.SetCurColor(vec4((yysemantic_stack_[(2) - (2)].vval)[0], (yysemantic_stack_[(2) - (2)].vval)[1], (yysemantic_stack_[(2) - (2)].vval)[2], (yysemantic_stack_[(2) - (2)].vval)[3])); }
  406. break;
  407. case 26:
  408. /* Line 677 of lalr1.cc */
  409. #line 150 "easymesh/easymesh-parser.y"
  410. { uint32_t x = (yysemantic_stack_[(2) - (2)].u32val);
  411. ivec4 v(x >> 24, (x >> 16) & 0xff, (x >> 8) & 0xff, x & 0xff);
  412. mc.m_mesh.SetCurColor(vec4(v) * (1.f / 255.f)); }
  413. break;
  414. case 27:
  415. /* Line 677 of lalr1.cc */
  416. #line 153 "easymesh/easymesh-parser.y"
  417. { mc.m_mesh.SetCurColorA(vec4((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].fval))); }
  418. break;
  419. case 28:
  420. /* Line 677 of lalr1.cc */
  421. #line 154 "easymesh/easymesh-parser.y"
  422. { mc.m_mesh.SetCurColorA(vec4((yysemantic_stack_[(2) - (2)].vval)[0], (yysemantic_stack_[(2) - (2)].vval)[1], (yysemantic_stack_[(2) - (2)].vval)[2], (yysemantic_stack_[(2) - (2)].vval)[3])); }
  423. break;
  424. case 29:
  425. /* Line 677 of lalr1.cc */
  426. #line 155 "easymesh/easymesh-parser.y"
  427. { uint32_t x = (yysemantic_stack_[(2) - (2)].u32val);
  428. ivec4 v(x >> 24, (x >> 16) & 0xff, (x >> 8) & 0xff, x & 0xff);
  429. mc.m_mesh.SetCurColorA(vec4(v) * (1.f / 255.f)); }
  430. break;
  431. case 30:
  432. /* Line 677 of lalr1.cc */
  433. #line 158 "easymesh/easymesh-parser.y"
  434. { mc.m_mesh.SetCurColorB(vec4((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].fval))); }
  435. break;
  436. case 31:
  437. /* Line 677 of lalr1.cc */
  438. #line 159 "easymesh/easymesh-parser.y"
  439. { mc.m_mesh.SetCurColorB(vec4((yysemantic_stack_[(2) - (2)].vval)[0], (yysemantic_stack_[(2) - (2)].vval)[1], (yysemantic_stack_[(2) - (2)].vval)[2], (yysemantic_stack_[(2) - (2)].vval)[3])); }
  440. break;
  441. case 32:
  442. /* Line 677 of lalr1.cc */
  443. #line 160 "easymesh/easymesh-parser.y"
  444. { uint32_t x = (yysemantic_stack_[(2) - (2)].u32val);
  445. ivec4 v(x >> 24, (x >> 16) & 0xff, (x >> 8) & 0xff, x & 0xff);
  446. mc.m_mesh.SetCurColorB(vec4(v) * (1.f / 255.f)); }
  447. break;
  448. case 33:
  449. /* Line 677 of lalr1.cc */
  450. #line 163 "easymesh/easymesh-parser.y"
  451. { mc.m_mesh.SetVertColor(vec4((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].fval))); }
  452. break;
  453. case 34:
  454. /* Line 677 of lalr1.cc */
  455. #line 164 "easymesh/easymesh-parser.y"
  456. { mc.m_mesh.SetVertColor(vec4((yysemantic_stack_[(2) - (2)].vval)[0], (yysemantic_stack_[(2) - (2)].vval)[1], (yysemantic_stack_[(2) - (2)].vval)[2], (yysemantic_stack_[(2) - (2)].vval)[3])); }
  457. break;
  458. case 35:
  459. /* Line 677 of lalr1.cc */
  460. #line 165 "easymesh/easymesh-parser.y"
  461. { uint32_t x = (yysemantic_stack_[(2) - (2)].u32val);
  462. ivec4 v(x >> 24, (x >> 16) & 0xff, (x >> 8) & 0xff, x & 0xff);
  463. mc.m_mesh.SetVertColor(vec4(v) * (1.f / 255.f)); }
  464. break;
  465. case 36:
  466. /* Line 677 of lalr1.cc */
  467. #line 171 "easymesh/easymesh-parser.y"
  468. { mc.m_mesh.Translate(vec3((yysemantic_stack_[(2) - (2)].fval), 0.f, 0.f)); }
  469. break;
  470. case 37:
  471. /* Line 677 of lalr1.cc */
  472. #line 172 "easymesh/easymesh-parser.y"
  473. { mc.m_mesh.Translate(vec3(0.f, (yysemantic_stack_[(2) - (2)].fval), 0.f)); }
  474. break;
  475. case 38:
  476. /* Line 677 of lalr1.cc */
  477. #line 173 "easymesh/easymesh-parser.y"
  478. { mc.m_mesh.Translate(vec3(0.f, 0.f, (yysemantic_stack_[(2) - (2)].fval))); }
  479. break;
  480. case 39:
  481. /* Line 677 of lalr1.cc */
  482. #line 174 "easymesh/easymesh-parser.y"
  483. { mc.m_mesh.Translate(vec3((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval))); }
  484. break;
  485. case 40:
  486. /* Line 677 of lalr1.cc */
  487. #line 175 "easymesh/easymesh-parser.y"
  488. { mc.m_mesh.Translate(vec3((yysemantic_stack_[(2) - (2)].vval)[0], (yysemantic_stack_[(2) - (2)].vval)[1], (yysemantic_stack_[(2) - (2)].vval)[2])); }
  489. break;
  490. case 41:
  491. /* Line 677 of lalr1.cc */
  492. #line 176 "easymesh/easymesh-parser.y"
  493. { mc.m_mesh.RotateX((yysemantic_stack_[(2) - (2)].fval)); }
  494. break;
  495. case 42:
  496. /* Line 677 of lalr1.cc */
  497. #line 177 "easymesh/easymesh-parser.y"
  498. { mc.m_mesh.RotateY((yysemantic_stack_[(2) - (2)].fval)); }
  499. break;
  500. case 43:
  501. /* Line 677 of lalr1.cc */
  502. #line 178 "easymesh/easymesh-parser.y"
  503. { mc.m_mesh.RotateZ((yysemantic_stack_[(2) - (2)].fval)); }
  504. break;
  505. case 44:
  506. /* Line 677 of lalr1.cc */
  507. #line 179 "easymesh/easymesh-parser.y"
  508. { mc.m_mesh.Rotate((yysemantic_stack_[(5) - (2)].fval), vec3((yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].fval))); }
  509. break;
  510. case 45:
  511. /* Line 677 of lalr1.cc */
  512. #line 180 "easymesh/easymesh-parser.y"
  513. { mc.m_mesh.Rotate((yysemantic_stack_[(3) - (2)].fval), vec3((yysemantic_stack_[(3) - (3)].vval)[0], (yysemantic_stack_[(3) - (3)].vval)[1], (yysemantic_stack_[(3) - (3)].vval)[2])); }
  514. break;
  515. case 46:
  516. /* Line 677 of lalr1.cc */
  517. #line 181 "easymesh/easymesh-parser.y"
  518. { mc.m_mesh.RadialJitter((yysemantic_stack_[(2) - (2)].fval)); }
  519. break;
  520. case 47:
  521. /* Line 677 of lalr1.cc */
  522. #line 182 "easymesh/easymesh-parser.y"
  523. { mc.m_mesh.TaperX((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].bval)); }
  524. break;
  525. case 48:
  526. /* Line 677 of lalr1.cc */
  527. #line 183 "easymesh/easymesh-parser.y"
  528. { mc.m_mesh.TaperX((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  529. break;
  530. case 49:
  531. /* Line 677 of lalr1.cc */
  532. #line 184 "easymesh/easymesh-parser.y"
  533. { mc.m_mesh.TaperX((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  534. break;
  535. case 50:
  536. /* Line 677 of lalr1.cc */
  537. #line 185 "easymesh/easymesh-parser.y"
  538. { mc.m_mesh.TaperY((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].bval)); }
  539. break;
  540. case 51:
  541. /* Line 677 of lalr1.cc */
  542. #line 186 "easymesh/easymesh-parser.y"
  543. { mc.m_mesh.TaperY((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  544. break;
  545. case 52:
  546. /* Line 677 of lalr1.cc */
  547. #line 187 "easymesh/easymesh-parser.y"
  548. { mc.m_mesh.TaperY((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  549. break;
  550. case 53:
  551. /* Line 677 of lalr1.cc */
  552. #line 188 "easymesh/easymesh-parser.y"
  553. { mc.m_mesh.TaperZ((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].bval)); }
  554. break;
  555. case 54:
  556. /* Line 677 of lalr1.cc */
  557. #line 189 "easymesh/easymesh-parser.y"
  558. { mc.m_mesh.TaperZ((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  559. break;
  560. case 55:
  561. /* Line 677 of lalr1.cc */
  562. #line 190 "easymesh/easymesh-parser.y"
  563. { mc.m_mesh.TaperZ((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  564. break;
  565. case 56:
  566. /* Line 677 of lalr1.cc */
  567. #line 191 "easymesh/easymesh-parser.y"
  568. { mc.m_mesh.TwistX((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  569. break;
  570. case 57:
  571. /* Line 677 of lalr1.cc */
  572. #line 192 "easymesh/easymesh-parser.y"
  573. { mc.m_mesh.TwistX((yysemantic_stack_[(2) - (2)].fval)); }
  574. break;
  575. case 58:
  576. /* Line 677 of lalr1.cc */
  577. #line 193 "easymesh/easymesh-parser.y"
  578. { mc.m_mesh.TwistY((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  579. break;
  580. case 59:
  581. /* Line 677 of lalr1.cc */
  582. #line 194 "easymesh/easymesh-parser.y"
  583. { mc.m_mesh.TwistY((yysemantic_stack_[(2) - (2)].fval)); }
  584. break;
  585. case 60:
  586. /* Line 677 of lalr1.cc */
  587. #line 195 "easymesh/easymesh-parser.y"
  588. { mc.m_mesh.TwistZ((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  589. break;
  590. case 61:
  591. /* Line 677 of lalr1.cc */
  592. #line 196 "easymesh/easymesh-parser.y"
  593. { mc.m_mesh.TwistZ((yysemantic_stack_[(2) - (2)].fval)); }
  594. break;
  595. case 62:
  596. /* Line 677 of lalr1.cc */
  597. #line 197 "easymesh/easymesh-parser.y"
  598. { mc.m_mesh.ShearX((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].bval)); }
  599. break;
  600. case 63:
  601. /* Line 677 of lalr1.cc */
  602. #line 198 "easymesh/easymesh-parser.y"
  603. { mc.m_mesh.ShearX((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  604. break;
  605. case 64:
  606. /* Line 677 of lalr1.cc */
  607. #line 199 "easymesh/easymesh-parser.y"
  608. { mc.m_mesh.ShearX((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  609. break;
  610. case 65:
  611. /* Line 677 of lalr1.cc */
  612. #line 200 "easymesh/easymesh-parser.y"
  613. { mc.m_mesh.ShearY((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].bval)); }
  614. break;
  615. case 66:
  616. /* Line 677 of lalr1.cc */
  617. #line 201 "easymesh/easymesh-parser.y"
  618. { mc.m_mesh.ShearY((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  619. break;
  620. case 67:
  621. /* Line 677 of lalr1.cc */
  622. #line 202 "easymesh/easymesh-parser.y"
  623. { mc.m_mesh.ShearY((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  624. break;
  625. case 68:
  626. /* Line 677 of lalr1.cc */
  627. #line 203 "easymesh/easymesh-parser.y"
  628. { mc.m_mesh.ShearZ((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].bval)); }
  629. break;
  630. case 69:
  631. /* Line 677 of lalr1.cc */
  632. #line 204 "easymesh/easymesh-parser.y"
  633. { mc.m_mesh.ShearZ((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  634. break;
  635. case 70:
  636. /* Line 677 of lalr1.cc */
  637. #line 205 "easymesh/easymesh-parser.y"
  638. { mc.m_mesh.ShearZ((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  639. break;
  640. case 71:
  641. /* Line 677 of lalr1.cc */
  642. #line 206 "easymesh/easymesh-parser.y"
  643. { mc.m_mesh.StretchX((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  644. break;
  645. case 72:
  646. /* Line 677 of lalr1.cc */
  647. #line 207 "easymesh/easymesh-parser.y"
  648. { mc.m_mesh.StretchX((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  649. break;
  650. case 73:
  651. /* Line 677 of lalr1.cc */
  652. #line 208 "easymesh/easymesh-parser.y"
  653. { mc.m_mesh.StretchY((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  654. break;
  655. case 74:
  656. /* Line 677 of lalr1.cc */
  657. #line 209 "easymesh/easymesh-parser.y"
  658. { mc.m_mesh.StretchY((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  659. break;
  660. case 75:
  661. /* Line 677 of lalr1.cc */
  662. #line 210 "easymesh/easymesh-parser.y"
  663. { mc.m_mesh.StretchZ((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  664. break;
  665. case 76:
  666. /* Line 677 of lalr1.cc */
  667. #line 211 "easymesh/easymesh-parser.y"
  668. { mc.m_mesh.StretchZ((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  669. break;
  670. case 77:
  671. /* Line 677 of lalr1.cc */
  672. #line 212 "easymesh/easymesh-parser.y"
  673. { mc.m_mesh.BendXY((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  674. break;
  675. case 78:
  676. /* Line 677 of lalr1.cc */
  677. #line 213 "easymesh/easymesh-parser.y"
  678. { mc.m_mesh.BendXY((yysemantic_stack_[(2) - (2)].fval)); }
  679. break;
  680. case 79:
  681. /* Line 677 of lalr1.cc */
  682. #line 214 "easymesh/easymesh-parser.y"
  683. { mc.m_mesh.BendXZ((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  684. break;
  685. case 80:
  686. /* Line 677 of lalr1.cc */
  687. #line 215 "easymesh/easymesh-parser.y"
  688. { mc.m_mesh.BendXZ((yysemantic_stack_[(2) - (2)].fval)); }
  689. break;
  690. case 81:
  691. /* Line 677 of lalr1.cc */
  692. #line 216 "easymesh/easymesh-parser.y"
  693. { mc.m_mesh.BendYX((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  694. break;
  695. case 82:
  696. /* Line 677 of lalr1.cc */
  697. #line 217 "easymesh/easymesh-parser.y"
  698. { mc.m_mesh.BendYX((yysemantic_stack_[(2) - (2)].fval)); }
  699. break;
  700. case 83:
  701. /* Line 677 of lalr1.cc */
  702. #line 218 "easymesh/easymesh-parser.y"
  703. { mc.m_mesh.BendYZ((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  704. break;
  705. case 84:
  706. /* Line 677 of lalr1.cc */
  707. #line 219 "easymesh/easymesh-parser.y"
  708. { mc.m_mesh.BendYZ((yysemantic_stack_[(2) - (2)].fval)); }
  709. break;
  710. case 85:
  711. /* Line 677 of lalr1.cc */
  712. #line 220 "easymesh/easymesh-parser.y"
  713. { mc.m_mesh.BendZX((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  714. break;
  715. case 86:
  716. /* Line 677 of lalr1.cc */
  717. #line 221 "easymesh/easymesh-parser.y"
  718. { mc.m_mesh.BendZX((yysemantic_stack_[(2) - (2)].fval)); }
  719. break;
  720. case 87:
  721. /* Line 677 of lalr1.cc */
  722. #line 222 "easymesh/easymesh-parser.y"
  723. { mc.m_mesh.BendZY((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].fval)); }
  724. break;
  725. case 88:
  726. /* Line 677 of lalr1.cc */
  727. #line 223 "easymesh/easymesh-parser.y"
  728. { mc.m_mesh.BendZY((yysemantic_stack_[(2) - (2)].fval)); }
  729. break;
  730. case 89:
  731. /* Line 677 of lalr1.cc */
  732. #line 224 "easymesh/easymesh-parser.y"
  733. { mc.m_mesh.Scale(vec3((yysemantic_stack_[(2) - (2)].fval), 1.f, 1.f)); }
  734. break;
  735. case 90:
  736. /* Line 677 of lalr1.cc */
  737. #line 225 "easymesh/easymesh-parser.y"
  738. { mc.m_mesh.Scale(vec3(1.f, (yysemantic_stack_[(2) - (2)].fval), 1.f)); }
  739. break;
  740. case 91:
  741. /* Line 677 of lalr1.cc */
  742. #line 226 "easymesh/easymesh-parser.y"
  743. { mc.m_mesh.Scale(vec3(1.f, 1.f, (yysemantic_stack_[(2) - (2)].fval))); }
  744. break;
  745. case 92:
  746. /* Line 677 of lalr1.cc */
  747. #line 227 "easymesh/easymesh-parser.y"
  748. { mc.m_mesh.Scale(vec3((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval))); }
  749. break;
  750. case 93:
  751. /* Line 677 of lalr1.cc */
  752. #line 228 "easymesh/easymesh-parser.y"
  753. { mc.m_mesh.Scale(vec3((yysemantic_stack_[(2) - (2)].vval)[0], (yysemantic_stack_[(2) - (2)].vval)[1], (yysemantic_stack_[(2) - (2)].vval)[2])); }
  754. break;
  755. case 94:
  756. /* Line 677 of lalr1.cc */
  757. #line 229 "easymesh/easymesh-parser.y"
  758. { mc.m_mesh.Scale(vec3((yysemantic_stack_[(2) - (2)].fval), (yysemantic_stack_[(2) - (2)].fval), (yysemantic_stack_[(2) - (2)].fval))); }
  759. break;
  760. case 95:
  761. /* Line 677 of lalr1.cc */
  762. #line 230 "easymesh/easymesh-parser.y"
  763. { mc.m_mesh.MirrorX(); }
  764. break;
  765. case 96:
  766. /* Line 677 of lalr1.cc */
  767. #line 231 "easymesh/easymesh-parser.y"
  768. { mc.m_mesh.MirrorY(); }
  769. break;
  770. case 97:
  771. /* Line 677 of lalr1.cc */
  772. #line 232 "easymesh/easymesh-parser.y"
  773. { mc.m_mesh.MirrorZ(); }
  774. break;
  775. case 98:
  776. /* Line 677 of lalr1.cc */
  777. #line 233 "easymesh/easymesh-parser.y"
  778. { mc.m_mesh.Chamfer((yysemantic_stack_[(2) - (2)].fval)); }
  779. break;
  780. case 99:
  781. /* Line 677 of lalr1.cc */
  782. #line 234 "easymesh/easymesh-parser.y"
  783. { mc.m_mesh.SplitTriangles((yysemantic_stack_[(2) - (2)].ival)); }
  784. break;
  785. case 100:
  786. /* Line 677 of lalr1.cc */
  787. #line 235 "easymesh/easymesh-parser.y"
  788. { mc.m_mesh.SmoothMesh((yysemantic_stack_[(4) - (2)].ival), (yysemantic_stack_[(4) - (3)].ival), (yysemantic_stack_[(4) - (4)].ival)); }
  789. break;
  790. case 101:
  791. /* Line 677 of lalr1.cc */
  792. #line 236 "easymesh/easymesh-parser.y"
  793. { mc.m_mesh.ToggleScaleWinding(); }
  794. break;
  795. case 102:
  796. /* Line 677 of lalr1.cc */
  797. #line 237 "easymesh/easymesh-parser.y"
  798. { mc.m_mesh.ToggleQuadWeighting(); }
  799. break;
  800. case 103:
  801. /* Line 677 of lalr1.cc */
  802. #line 238 "easymesh/easymesh-parser.y"
  803. { mc.m_mesh.TogglePostBuildNormal(); }
  804. break;
  805. case 104:
  806. /* Line 677 of lalr1.cc */
  807. #line 239 "easymesh/easymesh-parser.y"
  808. { mc.m_mesh.ToggleVerticeNoCleanup(); }
  809. break;
  810. case 105:
  811. /* Line 677 of lalr1.cc */
  812. #line 240 "easymesh/easymesh-parser.y"
  813. { mc.m_mesh.VerticesMerge(); }
  814. break;
  815. case 106:
  816. /* Line 677 of lalr1.cc */
  817. #line 241 "easymesh/easymesh-parser.y"
  818. { mc.m_mesh.VerticesSeparate(); }
  819. break;
  820. case 107:
  821. /* Line 677 of lalr1.cc */
  822. #line 245 "easymesh/easymesh-parser.y"
  823. { mc.m_mesh.AppendCylinder((yysemantic_stack_[(8) - (2)].ival), (yysemantic_stack_[(8) - (3)].fval), (yysemantic_stack_[(8) - (4)].fval), (yysemantic_stack_[(8) - (5)].fval), (yysemantic_stack_[(8) - (6)].bval), (yysemantic_stack_[(8) - (7)].bval), (yysemantic_stack_[(8) - (8)].bval)); }
  824. break;
  825. case 108:
  826. /* Line 677 of lalr1.cc */
  827. #line 246 "easymesh/easymesh-parser.y"
  828. { mc.m_mesh.AppendCylinder((yysemantic_stack_[(7) - (2)].ival), (yysemantic_stack_[(7) - (3)].fval), (yysemantic_stack_[(7) - (4)].fval), (yysemantic_stack_[(7) - (5)].fval), (yysemantic_stack_[(7) - (6)].bval), (yysemantic_stack_[(7) - (7)].bval)); }
  829. break;
  830. case 109:
  831. /* Line 677 of lalr1.cc */
  832. #line 247 "easymesh/easymesh-parser.y"
  833. { mc.m_mesh.AppendCylinder((yysemantic_stack_[(6) - (2)].ival), (yysemantic_stack_[(6) - (3)].fval), (yysemantic_stack_[(6) - (4)].fval), (yysemantic_stack_[(6) - (5)].fval), (yysemantic_stack_[(6) - (6)].bval)); }
  834. break;
  835. case 110:
  836. /* Line 677 of lalr1.cc */
  837. #line 248 "easymesh/easymesh-parser.y"
  838. { mc.m_mesh.AppendCylinder((yysemantic_stack_[(5) - (2)].ival), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].fval)); }
  839. break;
  840. case 111:
  841. /* Line 677 of lalr1.cc */
  842. #line 249 "easymesh/easymesh-parser.y"
  843. { mc.m_mesh.AppendCylinder((yysemantic_stack_[(4) - (2)].ival), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  844. break;
  845. case 112:
  846. /* Line 677 of lalr1.cc */
  847. #line 250 "easymesh/easymesh-parser.y"
  848. { mc.m_mesh.AppendSphere((yysemantic_stack_[(3) - (2)].ival), (yysemantic_stack_[(3) - (3)].fval)); }
  849. break;
  850. case 113:
  851. /* Line 677 of lalr1.cc */
  852. #line 251 "easymesh/easymesh-parser.y"
  853. { mc.m_mesh.AppendCapsule((yysemantic_stack_[(4) - (2)].ival), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  854. break;
  855. case 114:
  856. /* Line 677 of lalr1.cc */
  857. #line 252 "easymesh/easymesh-parser.y"
  858. { mc.m_mesh.AppendTorus((yysemantic_stack_[(4) - (2)].ival), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  859. break;
  860. case 115:
  861. /* Line 677 of lalr1.cc */
  862. #line 253 "easymesh/easymesh-parser.y"
  863. { mc.m_mesh.AppendBox(vec3((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval)), (yysemantic_stack_[(5) - (5)].fval)); }
  864. break;
  865. case 116:
  866. /* Line 677 of lalr1.cc */
  867. #line 254 "easymesh/easymesh-parser.y"
  868. { mc.m_mesh.AppendBox(vec3((yysemantic_stack_[(4) - (2)].fval), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval))); }
  869. break;
  870. case 117:
  871. /* Line 677 of lalr1.cc */
  872. #line 255 "easymesh/easymesh-parser.y"
  873. { mc.m_mesh.AppendBox(vec3((yysemantic_stack_[(2) - (2)].fval), (yysemantic_stack_[(2) - (2)].fval), (yysemantic_stack_[(2) - (2)].fval))); }
  874. break;
  875. case 118:
  876. /* Line 677 of lalr1.cc */
  877. #line 256 "easymesh/easymesh-parser.y"
  878. { mc.m_mesh.AppendBox(vec3((yysemantic_stack_[(3) - (2)].vval)[0], (yysemantic_stack_[(3) - (2)].vval)[1], (yysemantic_stack_[(3) - (2)].vval)[2]), (yysemantic_stack_[(3) - (3)].fval)); }
  879. break;
  880. case 119:
  881. /* Line 677 of lalr1.cc */
  882. #line 257 "easymesh/easymesh-parser.y"
  883. { mc.m_mesh.AppendBox(vec3((yysemantic_stack_[(2) - (2)].vval)[0], (yysemantic_stack_[(2) - (2)].vval)[1], (yysemantic_stack_[(2) - (2)].vval)[2])); }
  884. break;
  885. case 120:
  886. /* Line 677 of lalr1.cc */
  887. #line 258 "easymesh/easymesh-parser.y"
  888. { mc.m_mesh.AppendSmoothChamfBox(vec3((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval)), (yysemantic_stack_[(5) - (5)].fval)); }
  889. break;
  890. case 121:
  891. /* Line 677 of lalr1.cc */
  892. #line 259 "easymesh/easymesh-parser.y"
  893. { mc.m_mesh.AppendSmoothChamfBox(vec3((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (2)].fval)), (yysemantic_stack_[(3) - (3)].fval)); }
  894. break;
  895. case 122:
  896. /* Line 677 of lalr1.cc */
  897. #line 260 "easymesh/easymesh-parser.y"
  898. { mc.m_mesh.AppendSmoothChamfBox(vec3((yysemantic_stack_[(3) - (2)].vval)[0], (yysemantic_stack_[(3) - (2)].vval)[1], (yysemantic_stack_[(3) - (2)].vval)[2]), (yysemantic_stack_[(3) - (3)].fval)); }
  899. break;
  900. case 123:
  901. /* Line 677 of lalr1.cc */
  902. #line 261 "easymesh/easymesh-parser.y"
  903. { mc.m_mesh.AppendFlatChamfBox(vec3((yysemantic_stack_[(5) - (2)].fval), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval)), (yysemantic_stack_[(5) - (5)].fval)); }
  904. break;
  905. case 124:
  906. /* Line 677 of lalr1.cc */
  907. #line 262 "easymesh/easymesh-parser.y"
  908. { mc.m_mesh.AppendFlatChamfBox(vec3((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (2)].fval)), (yysemantic_stack_[(3) - (3)].fval)); }
  909. break;
  910. case 125:
  911. /* Line 677 of lalr1.cc */
  912. #line 263 "easymesh/easymesh-parser.y"
  913. { mc.m_mesh.AppendFlatChamfBox(vec3((yysemantic_stack_[(3) - (2)].vval)[0], (yysemantic_stack_[(3) - (2)].vval)[1], (yysemantic_stack_[(3) - (2)].vval)[2]), (yysemantic_stack_[(3) - (3)].fval)); }
  914. break;
  915. case 126:
  916. /* Line 677 of lalr1.cc */
  917. #line 264 "easymesh/easymesh-parser.y"
  918. { mc.m_mesh.AppendStar((yysemantic_stack_[(6) - (2)].ival), (yysemantic_stack_[(6) - (3)].fval), (yysemantic_stack_[(6) - (4)].fval), (yysemantic_stack_[(6) - (5)].bval), (yysemantic_stack_[(6) - (6)].bval)); }
  919. break;
  920. case 127:
  921. /* Line 677 of lalr1.cc */
  922. #line 265 "easymesh/easymesh-parser.y"
  923. { mc.m_mesh.AppendStar((yysemantic_stack_[(5) - (2)].ival), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].bval)); }
  924. break;
  925. case 128:
  926. /* Line 677 of lalr1.cc */
  927. #line 266 "easymesh/easymesh-parser.y"
  928. { mc.m_mesh.AppendStar((yysemantic_stack_[(4) - (2)].ival), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  929. break;
  930. case 129:
  931. /* Line 677 of lalr1.cc */
  932. #line 267 "easymesh/easymesh-parser.y"
  933. { mc.m_mesh.AppendExpandedStar((yysemantic_stack_[(5) - (2)].ival), (yysemantic_stack_[(5) - (3)].fval), (yysemantic_stack_[(5) - (4)].fval), (yysemantic_stack_[(5) - (5)].fval)); }
  934. break;
  935. case 130:
  936. /* Line 677 of lalr1.cc */
  937. #line 268 "easymesh/easymesh-parser.y"
  938. { mc.m_mesh.AppendExpandedStar((yysemantic_stack_[(4) - (2)].ival), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].fval)); }
  939. break;
  940. case 131:
  941. /* Line 677 of lalr1.cc */
  942. #line 269 "easymesh/easymesh-parser.y"
  943. { mc.m_mesh.AppendDisc((yysemantic_stack_[(4) - (2)].ival), (yysemantic_stack_[(4) - (3)].fval), (yysemantic_stack_[(4) - (4)].bval)); }
  944. break;
  945. case 132:
  946. /* Line 677 of lalr1.cc */
  947. #line 270 "easymesh/easymesh-parser.y"
  948. { mc.m_mesh.AppendDisc((yysemantic_stack_[(3) - (2)].ival), (yysemantic_stack_[(3) - (3)].fval)); }
  949. break;
  950. case 133:
  951. /* Line 677 of lalr1.cc */
  952. #line 271 "easymesh/easymesh-parser.y"
  953. { mc.m_mesh.AppendSimpleTriangle((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].bval)); }
  954. break;
  955. case 134:
  956. /* Line 677 of lalr1.cc */
  957. #line 272 "easymesh/easymesh-parser.y"
  958. { mc.m_mesh.AppendSimpleTriangle((yysemantic_stack_[(2) - (2)].fval)); }
  959. break;
  960. case 135:
  961. /* Line 677 of lalr1.cc */
  962. #line 273 "easymesh/easymesh-parser.y"
  963. { mc.m_mesh.AppendSimpleQuad((yysemantic_stack_[(3) - (2)].fval), (yysemantic_stack_[(3) - (3)].bval)); }
  964. break;
  965. case 136:
  966. /* Line 677 of lalr1.cc */
  967. #line 274 "easymesh/easymesh-parser.y"
  968. { mc.m_mesh.AppendSimpleQuad((yysemantic_stack_[(2) - (2)].fval)); }
  969. break;
  970. case 137:
  971. /* Line 677 of lalr1.cc */
  972. #line 275 "easymesh/easymesh-parser.y"
  973. { mc.m_mesh.AppendCog((yysemantic_stack_[(11) - (2)].ival), (yysemantic_stack_[(11) - (3)].fval), (yysemantic_stack_[(11) - (4)].fval), (yysemantic_stack_[(11) - (5)].fval), (yysemantic_stack_[(11) - (6)].fval), (yysemantic_stack_[(11) - (7)].fval), (yysemantic_stack_[(11) - (8)].fval), (yysemantic_stack_[(11) - (9)].fval), (yysemantic_stack_[(11) - (10)].fval), (yysemantic_stack_[(11) - (11)].bval)); }
  974. break;
  975. case 138:
  976. /* Line 677 of lalr1.cc */
  977. #line 276 "easymesh/easymesh-parser.y"
  978. { mc.m_mesh.AppendCog((yysemantic_stack_[(10) - (2)].ival), (yysemantic_stack_[(10) - (3)].fval), (yysemantic_stack_[(10) - (4)].fval), (yysemantic_stack_[(10) - (5)].fval), (yysemantic_stack_[(10) - (6)].fval), (yysemantic_stack_[(10) - (7)].fval), (yysemantic_stack_[(10) - (8)].fval), (yysemantic_stack_[(10) - (9)].fval), (yysemantic_stack_[(10) - (10)].fval)); }
  979. break;
  980. case 139:
  981. /* Line 677 of lalr1.cc */
  982. #line 277 "easymesh/easymesh-parser.y"
  983. { mc.m_mesh.AppendCog((yysemantic_stack_[(9) - (2)].ival), (yysemantic_stack_[(9) - (3)].fval), (yysemantic_stack_[(9) - (4)].fval), (yysemantic_stack_[(9) - (5)].fval), (yysemantic_stack_[(9) - (6)].fval), (yysemantic_stack_[(9) - (7)].fval), (yysemantic_stack_[(9) - (8)].fval), (yysemantic_stack_[(9) - (9)].fval)); }
  984. break;
  985. case 140:
  986. /* Line 677 of lalr1.cc */
  987. #line 278 "easymesh/easymesh-parser.y"
  988. { mc.m_mesh.AppendCog((yysemantic_stack_[(8) - (2)].ival), (yysemantic_stack_[(8) - (3)].fval), (yysemantic_stack_[(8) - (4)].vval)[0], (yysemantic_stack_[(8) - (4)].vval)[1], (yysemantic_stack_[(8) - (5)].vval)[0], (yysemantic_stack_[(8) - (5)].vval)[1], (yysemantic_stack_[(8) - (6)].vval)[0], (yysemantic_stack_[(8) - (6)].vval)[1], (yysemantic_stack_[(8) - (7)].fval), (yysemantic_stack_[(8) - (8)].bval)); }
  989. break;
  990. case 141:
  991. /* Line 677 of lalr1.cc */
  992. #line 279 "easymesh/easymesh-parser.y"
  993. { mc.m_mesh.AppendCog((yysemantic_stack_[(7) - (2)].ival), (yysemantic_stack_[(7) - (3)].fval), (yysemantic_stack_[(7) - (4)].vval)[0], (yysemantic_stack_[(7) - (4)].vval)[1], (yysemantic_stack_[(7) - (5)].vval)[0], (yysemantic_stack_[(7) - (5)].vval)[1], (yysemantic_stack_[(7) - (6)].vval)[0], (yysemantic_stack_[(7) - (6)].vval)[1], (yysemantic_stack_[(7) - (7)].fval)); }
  994. break;
  995. case 142:
  996. /* Line 677 of lalr1.cc */
  997. #line 280 "easymesh/easymesh-parser.y"
  998. { mc.m_mesh.AppendCog((yysemantic_stack_[(6) - (2)].ival), (yysemantic_stack_[(6) - (3)].fval), (yysemantic_stack_[(6) - (4)].vval)[0], (yysemantic_stack_[(6) - (4)].vval)[1], (yysemantic_stack_[(6) - (5)].vval)[0], (yysemantic_stack_[(6) - (5)].vval)[1], (yysemantic_stack_[(6) - (6)].vval)[0], (yysemantic_stack_[(6) - (6)].vval)[1]); }
  999. break;
  1000. case 143:
  1001. /* Line 677 of lalr1.cc */
  1002. #line 285 "easymesh/easymesh-parser.y"
  1003. { (yyval.fval) = (yysemantic_stack_[(1) - (1)].fval); }
  1004. break;
  1005. case 144:
  1006. /* Line 677 of lalr1.cc */
  1007. #line 286 "easymesh/easymesh-parser.y"
  1008. { (yyval.fval) = -(yysemantic_stack_[(2) - (2)].fval); }
  1009. break;
  1010. case 145:
  1011. /* Line 677 of lalr1.cc */
  1012. #line 287 "easymesh/easymesh-parser.y"
  1013. { (yyval.fval) = (float)(yysemantic_stack_[(1) - (1)].ival); }
  1014. break;
  1015. case 146:
  1016. /* Line 677 of lalr1.cc */
  1017. #line 288 "easymesh/easymesh-parser.y"
  1018. { (yyval.fval) = -(float)(yysemantic_stack_[(2) - (2)].ival); }
  1019. break;
  1020. case 147:
  1021. /* Line 677 of lalr1.cc */
  1022. #line 292 "easymesh/easymesh-parser.y"
  1023. { (yyval.ival) = (yysemantic_stack_[(1) - (1)].ival); }
  1024. break;
  1025. case 148:
  1026. /* Line 677 of lalr1.cc */
  1027. #line 293 "easymesh/easymesh-parser.y"
  1028. { (yyval.ival) = -(yysemantic_stack_[(2) - (2)].ival); }
  1029. break;
  1030. case 149:
  1031. /* Line 677 of lalr1.cc */
  1032. #line 294 "easymesh/easymesh-parser.y"
  1033. { (yyval.ival) = (int)(yysemantic_stack_[(1) - (1)].fval); }
  1034. break;
  1035. case 150:
  1036. /* Line 677 of lalr1.cc */
  1037. #line 295 "easymesh/easymesh-parser.y"
  1038. { (yyval.ival) = -(int)(yysemantic_stack_[(2) - (2)].fval); }
  1039. break;
  1040. case 151:
  1041. /* Line 677 of lalr1.cc */
  1042. #line 300 "easymesh/easymesh-parser.y"
  1043. { (yyval.vval)[0] = (yysemantic_stack_[(3) - (2)].fval); (yyval.vval)[1] = (yysemantic_stack_[(3) - (2)].fval); }
  1044. break;
  1045. case 152:
  1046. /* Line 677 of lalr1.cc */
  1047. #line 301 "easymesh/easymesh-parser.y"
  1048. { (yyval.vval)[0] = (yysemantic_stack_[(4) - (2)].fval); (yyval.vval)[1] = (yysemantic_stack_[(4) - (3)].fval); }
  1049. break;
  1050. case 153:
  1051. /* Line 677 of lalr1.cc */
  1052. #line 305 "easymesh/easymesh-parser.y"
  1053. { (yyval.vval)[0] = (yysemantic_stack_[(3) - (2)].fval); (yyval.vval)[1] = (yysemantic_stack_[(3) - (2)].fval); (yyval.vval)[2] = (yysemantic_stack_[(3) - (2)].fval); }
  1054. break;
  1055. case 154:
  1056. /* Line 677 of lalr1.cc */
  1057. #line 306 "easymesh/easymesh-parser.y"
  1058. { (yyval.vval)[0] = (yysemantic_stack_[(5) - (2)].fval); (yyval.vval)[1] = (yysemantic_stack_[(5) - (3)].fval); (yyval.vval)[2] = (yysemantic_stack_[(5) - (4)].fval); }
  1059. break;
  1060. case 155:
  1061. /* Line 677 of lalr1.cc */
  1062. #line 310 "easymesh/easymesh-parser.y"
  1063. { (yyval.vval)[0] = (yysemantic_stack_[(3) - (2)].fval); (yyval.vval)[1] = (yysemantic_stack_[(3) - (2)].fval); (yyval.vval)[2] = (yysemantic_stack_[(3) - (2)].fval); (yyval.vval)[3] = (yysemantic_stack_[(3) - (2)].fval); }
  1064. break;
  1065. case 156:
  1066. /* Line 677 of lalr1.cc */
  1067. #line 311 "easymesh/easymesh-parser.y"
  1068. { (yyval.vval)[0] = (yysemantic_stack_[(6) - (2)].fval); (yyval.vval)[1] = (yysemantic_stack_[(6) - (3)].fval); (yyval.vval)[2] = (yysemantic_stack_[(6) - (4)].fval); (yyval.vval)[3] = (yysemantic_stack_[(6) - (5)].fval); }
  1069. break;
  1070. case 157:
  1071. /* Line 677 of lalr1.cc */
  1072. #line 316 "easymesh/easymesh-parser.y"
  1073. { (yyval.bval) = (yysemantic_stack_[(1) - (1)].bval); }
  1074. break;
  1075. case 158:
  1076. /* Line 677 of lalr1.cc */
  1077. #line 317 "easymesh/easymesh-parser.y"
  1078. { (yyval.bval) = !!(yysemantic_stack_[(1) - (1)].ival); }
  1079. break;
  1080. case 159:
  1081. /* Line 677 of lalr1.cc */
  1082. #line 318 "easymesh/easymesh-parser.y"
  1083. { (yyval.bval) = !!(yysemantic_stack_[(1) - (1)].fval); }
  1084. break;
  1085. /* Line 677 of lalr1.cc */
  1086. #line 1474 "generated/easymesh-parser.cpp"
  1087. default:
  1088. break;
  1089. }
  1090. YY_SYMBOL_PRINT ("-> $$ =", yyr1_[yyn], &yyval, &yyloc);
  1091. yypop_ (yylen);
  1092. yylen = 0;
  1093. YY_STACK_PRINT ();
  1094. yysemantic_stack_.push (yyval);
  1095. yylocation_stack_.push (yyloc);
  1096. /* Shift the result of the reduction. */
  1097. yyn = yyr1_[yyn];
  1098. yystate = yypgoto_[yyn - yyntokens_] + yystate_stack_[0];
  1099. if (0 <= yystate && yystate <= yylast_
  1100. && yycheck_[yystate] == yystate_stack_[0])
  1101. yystate = yytable_[yystate];
  1102. else
  1103. yystate = yydefgoto_[yyn - yyntokens_];
  1104. goto yynewstate;
  1105. /*------------------------------------.
  1106. | yyerrlab -- here on detecting error |
  1107. `------------------------------------*/
  1108. yyerrlab:
  1109. /* If not already recovering from an error, report this error. */
  1110. if (!yyerrstatus_)
  1111. {
  1112. ++yynerrs_;
  1113. error (yylloc, yysyntax_error_ (yystate, yytoken));
  1114. }
  1115. yyerror_range[0] = yylloc;
  1116. if (yyerrstatus_ == 3)
  1117. {
  1118. /* If just tried and failed to reuse lookahead token after an
  1119. error, discard it. */
  1120. if (yychar <= yyeof_)
  1121. {
  1122. /* Return failure if at end of input. */
  1123. if (yychar == yyeof_)
  1124. YYABORT;
  1125. }
  1126. else
  1127. {
  1128. yydestruct_ ("Error: discarding", yytoken, &yylval, &yylloc);
  1129. yychar = yyempty_;
  1130. }
  1131. }
  1132. /* Else will try to reuse lookahead token after shifting the error
  1133. token. */
  1134. goto yyerrlab1;
  1135. /*---------------------------------------------------.
  1136. | yyerrorlab -- error raised explicitly by YYERROR. |
  1137. `---------------------------------------------------*/
  1138. yyerrorlab:
  1139. /* Pacify compilers like GCC when the user code never invokes
  1140. YYERROR and the label yyerrorlab therefore never appears in user
  1141. code. */
  1142. if (false)
  1143. goto yyerrorlab;
  1144. yyerror_range[0] = yylocation_stack_[yylen - 1];
  1145. /* Do not reclaim the symbols of the rule which action triggered
  1146. this YYERROR. */
  1147. yypop_ (yylen);
  1148. yylen = 0;
  1149. yystate = yystate_stack_[0];
  1150. goto yyerrlab1;
  1151. /*-------------------------------------------------------------.
  1152. | yyerrlab1 -- common code for both syntax error and YYERROR. |
  1153. `-------------------------------------------------------------*/
  1154. yyerrlab1:
  1155. yyerrstatus_ = 3; /* Each real token shifted decrements this. */
  1156. for (;;)
  1157. {
  1158. yyn = yypact_[yystate];
  1159. if (yyn != yypact_ninf_)
  1160. {
  1161. yyn += yyterror_;
  1162. if (0 <= yyn && yyn <= yylast_ && yycheck_[yyn] == yyterror_)
  1163. {
  1164. yyn = yytable_[yyn];
  1165. if (0 < yyn)
  1166. break;
  1167. }
  1168. }
  1169. /* Pop the current state because it cannot handle the error token. */
  1170. if (yystate_stack_.height () == 1)
  1171. YYABORT;
  1172. yyerror_range[0] = yylocation_stack_[0];
  1173. yydestruct_ ("Error: popping",
  1174. yystos_[yystate],
  1175. &yysemantic_stack_[0], &yylocation_stack_[0]);
  1176. yypop_ ();
  1177. yystate = yystate_stack_[0];
  1178. YY_STACK_PRINT ();
  1179. }
  1180. yyerror_range[1] = yylloc;
  1181. // Using YYLLOC is tempting, but would change the location of
  1182. // the lookahead. YYLOC is available though.
  1183. YYLLOC_DEFAULT (yyloc, (yyerror_range - 1), 2);
  1184. yysemantic_stack_.push (yylval);
  1185. yylocation_stack_.push (yyloc);
  1186. /* Shift the error token. */
  1187. YY_SYMBOL_PRINT ("Shifting", yystos_[yyn],
  1188. &yysemantic_stack_[0], &yylocation_stack_[0]);
  1189. yystate = yyn;
  1190. goto yynewstate;
  1191. /* Accept. */
  1192. yyacceptlab:
  1193. yyresult = 0;
  1194. goto yyreturn;
  1195. /* Abort. */
  1196. yyabortlab:
  1197. yyresult = 1;
  1198. goto yyreturn;
  1199. yyreturn:
  1200. if (yychar != yyempty_)
  1201. yydestruct_ ("Cleanup: discarding lookahead", yytoken, &yylval, &yylloc);
  1202. /* Do not reclaim the symbols of the rule which action triggered
  1203. this YYABORT or YYACCEPT. */
  1204. yypop_ (yylen);
  1205. while (yystate_stack_.height () != 1)
  1206. {
  1207. yydestruct_ ("Cleanup: popping",
  1208. yystos_[yystate_stack_[0]],
  1209. &yysemantic_stack_[0],
  1210. &yylocation_stack_[0]);
  1211. yypop_ ();
  1212. }
  1213. return yyresult;
  1214. }
  1215. // Generate an error message.
  1216. std::string
  1217. EasyMeshParser::yysyntax_error_ (int yystate, int tok)
  1218. {
  1219. std::string res;
  1220. YYUSE (yystate);
  1221. #if YYERROR_VERBOSE
  1222. int yyn = yypact_[yystate];
  1223. if (yypact_ninf_ < yyn && yyn <= yylast_)
  1224. {
  1225. /* Start YYX at -YYN if negative to avoid negative indexes in
  1226. YYCHECK. */
  1227. int yyxbegin = yyn < 0 ? -yyn : 0;
  1228. /* Stay within bounds of both yycheck and yytname. */
  1229. int yychecklim = yylast_ - yyn + 1;
  1230. int yyxend = yychecklim < yyntokens_ ? yychecklim : yyntokens_;
  1231. int count = 0;
  1232. for (int x = yyxbegin; x < yyxend; ++x)
  1233. if (yycheck_[x + yyn] == x && x != yyterror_)
  1234. ++count;
  1235. // FIXME: This method of building the message is not compatible
  1236. // with internationalization. It should work like yacc.c does it.
  1237. // That is, first build a string that looks like this:
  1238. // "syntax error, unexpected %s or %s or %s"
  1239. // Then, invoke YY_ on this string.
  1240. // Finally, use the string as a format to output
  1241. // yytname_[tok], etc.
  1242. // Until this gets fixed, this message appears in English only.
  1243. res = "syntax error, unexpected ";
  1244. res += yytnamerr_ (yytname_[tok]);
  1245. if (count < 5)
  1246. {
  1247. count = 0;
  1248. for (int x = yyxbegin; x < yyxend; ++x)
  1249. if (yycheck_[x + yyn] == x && x != yyterror_)
  1250. {
  1251. res += (!count++) ? ", expecting " : " or ";
  1252. res += yytnamerr_ (yytname_[x]);
  1253. }
  1254. }
  1255. }
  1256. else
  1257. #endif
  1258. res = YY_("syntax error");
  1259. return res;
  1260. }
  1261. /* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
  1262. STATE-NUM. */
  1263. const short int EasyMeshParser::yypact_ninf_ = -266;
  1264. const short int
  1265. EasyMeshParser::yypact_[] =
  1266. {
  1267. 412, -14, 17, 89, 108, 146, -266, -266, -266, -266,
  1268. -266, -266, 87, 87, 87, 87, 87, 87, 87, 87,
  1269. 87, -266, 87, 87, 87, 87, 87, 87, 87, 87,
  1270. 87, -266, 87, 87, 87, 87, 87, 87, 87, 87,
  1271. 87, -266, 164, 87, 164, 87, -14, -14, -266, -57,
  1272. -57, -57, -57, -57, 87, -14, 164, 164, 164, -14,
  1273. -14, -14, -14, -14, 87, 87, -14, -14, -266, 38,
  1274. 43, 412, -266, 485, -266, -26, -19, 412, -266, -266,
  1275. -266, -266, -266, 129, -266, -266, -266, -266, 129, 87,
  1276. 87, -266, -266, 87, -266, -266, 87, -266, -266, 87,
  1277. -266, -266, -266, 87, 87, 87, 87, 87, 87, -266,
  1278. -266, -266, 87, 87, 87, 87, 87, 87, -266, -266,
  1279. -266, 87, 87, 87, 87, 87, 87, -266, 87, 87,
  1280. -266, 164, 87, -266, -266, -266, -14, 412, 412, 412,
  1281. 412, 412, -266, 87, 87, 87, 87, 87, 87, 87,
  1282. 87, 87, 87, 87, 87, -25, -25, 87, 87, -266,
  1283. -266, -266, -266, 412, 412, -17, -266, -266, 129, -266,
  1284. -266, -266, -266, -27, 87, 87, 87, 87, 87, -266,
  1285. 87, 87, -266, -266, 87, -266, 87, 87, -266, -266,
  1286. 87, -266, 87, 87, -266, -266, -5, 87, 87, -266,
  1287. 87, -14, -16, -8, 6, 8, 16, 87, 87, -266,
  1288. 87, -266, 87, -266, -266, 87, 87, 87, -25, -266,
  1289. -266, -266, -266, -266, 166, 87, 30, -17, -266, -266,
  1290. -266, -266, -266, 87, 87, 87, 87, 87, -25, -25,
  1291. -266, -25, -25, -266, -25, -25, -266, -266, 87, -266,
  1292. 87, -266, -266, -266, -266, -266, -266, -266, 87, 87,
  1293. 87, 87, -266, -25, 87, -266, 87, 87, -9, -266,
  1294. -266, -266, 87, -266, -266, -266, -266, -266, -266, -266,
  1295. -266, -266, -266, -6, -266, -25, -266, -266, -266, -25,
  1296. -266, 4, 87, -9, 28, -266, -25, -266, -266, 29,
  1297. 87, 87, -266, -25, -266, 87, -25, -266, 87, -266,
  1298. 87, -25, -266
  1299. };
  1300. /* YYDEFACT[S] -- default rule to reduce with in state S when YYTABLE
  1301. doesn't specify something else to do. Zero means the default is an
  1302. error. */
  1303. const unsigned char
  1304. EasyMeshParser::yydefact_[] =
  1305. {
  1306. 0, 0, 0, 0, 0, 0, 101, 102, 103, 104,
  1307. 105, 106, 0, 0, 0, 0, 0, 0, 0, 0,
  1308. 0, 95, 0, 0, 0, 0, 0, 0, 0, 0,
  1309. 0, 96, 0, 0, 0, 0, 0, 0, 0, 0,
  1310. 0, 97, 0, 0, 0, 0, 0, 0, 21, 0,
  1311. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1312. 0, 0, 0, 0, 0, 0, 0, 0, 22, 0,
  1313. 0, 3, 5, 7, 12, 0, 0, 0, 9, 10,
  1314. 11, 149, 147, 0, 20, 143, 145, 26, 0, 0,
  1315. 0, 25, 29, 0, 28, 32, 0, 31, 35, 0,
  1316. 34, 36, 41, 0, 57, 0, 0, 78, 80, 89,
  1317. 37, 42, 0, 59, 0, 0, 82, 84, 90, 38,
  1318. 43, 0, 61, 0, 0, 86, 88, 91, 0, 0,
  1319. 40, 0, 94, 93, 46, 99, 0, 0, 0, 0,
  1320. 0, 0, 98, 0, 117, 119, 0, 0, 0, 0,
  1321. 0, 0, 0, 0, 0, 134, 136, 0, 0, 1,
  1322. 2, 4, 8, 0, 0, 0, 143, 145, 0, 150,
  1323. 148, 144, 146, 0, 0, 0, 0, 0, 49, 56,
  1324. 64, 72, 77, 79, 52, 58, 67, 74, 81, 83,
  1325. 55, 60, 70, 76, 85, 87, 0, 0, 0, 45,
  1326. 0, 0, 0, 0, 0, 0, 0, 0, 0, 118,
  1327. 121, 122, 124, 125, 112, 0, 0, 0, 132, 159,
  1328. 158, 157, 133, 135, 0, 0, 0, 0, 23, 6,
  1329. 144, 146, 155, 0, 0, 0, 0, 0, 48, 63,
  1330. 71, 51, 66, 73, 54, 69, 75, 153, 0, 39,
  1331. 0, 92, 100, 15, 16, 17, 18, 19, 111, 116,
  1332. 0, 0, 113, 128, 130, 131, 0, 0, 0, 114,
  1333. 14, 13, 0, 24, 27, 30, 33, 47, 62, 50,
  1334. 65, 53, 68, 0, 44, 110, 115, 120, 123, 127,
  1335. 129, 0, 0, 0, 0, 154, 109, 126, 151, 0,
  1336. 0, 142, 156, 108, 152, 0, 141, 107, 0, 140,
  1337. 139, 138, 137
  1338. };
  1339. /* YYPGOTO[NTERM-NUM]. */
  1340. const short int
  1341. EasyMeshParser::yypgoto_[] =
  1342. {
  1343. -266, -266, -7, -266, -2, -266, -266, -266, -266, -45,
  1344. -112, -266, -266, -266, -3, 213, -265, 21, 94, 72
  1345. };
  1346. /* YYDEFGOTO[NTERM-NUM]. */
  1347. const short int
  1348. EasyMeshParser::yydefgoto_[] =
  1349. {
  1350. -1, 69, 70, 71, 72, 73, 74, 75, 76, 77,
  1351. 229, 78, 79, 80, 90, 84, 268, 130, 91, 222
  1352. };
  1353. /* YYTABLE[YYPACT[STATE-NUM]]. What to do in state STATE-NUM. If
  1354. positive, shift that token. If negative, reduce the rule which
  1355. number is the opposite. If zero, do what YYDEFACT says. */
  1356. const signed char EasyMeshParser::yytable_ninf_ = -1;
  1357. const unsigned short int
  1358. EasyMeshParser::yytable_[] =
  1359. {
  1360. 93, 96, 99, 293, 137, 138, 139, 140, 141, 101,
  1361. 102, 103, 104, 105, 106, 107, 108, 109, 68, 110,
  1362. 111, 112, 113, 114, 115, 116, 117, 118, 301, 119,
  1363. 120, 121, 122, 123, 124, 125, 126, 127, 159, 129,
  1364. 131, 132, 134, 160, 85, 86, 219, 220, 221, 163,
  1365. 88, 142, 232, 144, 146, 148, 164, 81, 82, 228,
  1366. 253, 155, 156, 83, 161, 133, 85, 86, 254, 266,
  1367. 165, 162, 88, 295, 247, 85, 86, 145, 147, 149,
  1368. 169, 88, 255, 298, 256, 171, 173, 174, 85, 86,
  1369. 175, 87, 257, 176, 88, 89, 177, 94, 97, 100,
  1370. 178, 179, 180, 181, 182, 183, 270, 302, 304, 184,
  1371. 185, 186, 187, 188, 189, 271, 0, 0, 190, 191,
  1372. 192, 193, 194, 195, 0, 196, 197, 0, 198, 200,
  1373. 202, 203, 204, 205, 206, 0, 0, 0, 0, 0,
  1374. 207, 208, 209, 210, 211, 212, 213, 214, 215, 216,
  1375. 217, 218, 199, 0, 224, 225, 226, 227, 85, 86,
  1376. 85, 86, 0, 92, 88, 230, 88, 89, 0, 0,
  1377. 233, 234, 235, 236, 237, 238, 0, 239, 240, 85,
  1378. 86, 241, 95, 242, 243, 88, 89, 244, 0, 245,
  1379. 246, 0, 0, 248, 249, 250, 0, 251, 0, 0,
  1380. 166, 167, 0, 0, 258, 259, 168, 260, 0, 261,
  1381. 0, 0, 262, 263, 264, 0, 0, 85, 86, 0,
  1382. 98, 267, 269, 88, 89, 0, 0, 0, 223, 0,
  1383. 272, 273, 274, 275, 276, 85, 86, 85, 86, 0,
  1384. 0, 88, 128, 88, 266, 283, 0, 284, 0, 0,
  1385. 0, 0, 0, 0, 0, 285, 286, 287, 288, 135,
  1386. 136, 290, 0, 291, 292, 0, 0, 0, 143, 294,
  1387. 0, 0, 150, 151, 152, 153, 154, 0, 0, 157,
  1388. 158, 0, 0, 0, 0, 0, 0, 0, 299, 300,
  1389. 265, 0, 0, 0, 0, 0, 170, 305, 306, 0,
  1390. 0, 172, 308, 0, 0, 310, 0, 311, 0, 0,
  1391. 277, 278, 0, 279, 280, 0, 281, 282, 0, 0,
  1392. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1393. 0, 0, 0, 0, 0, 289, 0, 0, 0, 0,
  1394. 0, 0, 0, 0, 0, 0, 0, 0, 0, 201,
  1395. 0, 0, 0, 0, 0, 0, 0, 296, 0, 0,
  1396. 0, 297, 0, 0, 0, 0, 0, 0, 303, 0,
  1397. 0, 0, 0, 0, 0, 307, 0, 0, 309, 0,
  1398. 0, 231, 0, 312, 0, 0, 0, 0, 0, 0,
  1399. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1400. 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
  1401. 0, 0, 0, 0, 252, 1, 2, 3, 4, 5,
  1402. 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
  1403. 16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
  1404. 26, 27, 28, 29, 30, 31, 32, 33, 34, 35,
  1405. 36, 37, 38, 39, 40, 41, 42, 43, 44, 45,
  1406. 46, 47, 48, 49, 50, 51, 52, 53, 54, 55,
  1407. 56, 57, 58, 59, 60, 61, 62, 63, 64, 65,
  1408. 66, 67, 0, 0, 0, 0, 0, 68, 1, 2,
  1409. 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
  1410. 13, 14, 15, 16, 17, 18, 19, 20, 21, 22,
  1411. 23, 24, 25, 26, 27, 28, 29, 30, 31, 32,
  1412. 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
  1413. 43, 44, 45, 46, 47, 48, 49, 50, 51, 52,
  1414. 53, 54, 55, 56, 57, 58, 59, 60, 61, 62,
  1415. 63, 64, 65, 66, 67
  1416. };
  1417. /* YYCHECK. */
  1418. const short int
  1419. EasyMeshParser::yycheck_[] =
  1420. {
  1421. 3, 4, 5, 268, 49, 50, 51, 52, 53, 12,
  1422. 13, 14, 15, 16, 17, 18, 19, 20, 75, 22,
  1423. 23, 24, 25, 26, 27, 28, 29, 30, 293, 32,
  1424. 33, 34, 35, 36, 37, 38, 39, 40, 0, 42,
  1425. 43, 44, 45, 0, 71, 72, 71, 72, 73, 75,
  1426. 77, 54, 79, 56, 57, 58, 75, 71, 72, 76,
  1427. 76, 64, 65, 77, 71, 44, 71, 72, 76, 78,
  1428. 77, 73, 77, 79, 79, 71, 72, 56, 57, 58,
  1429. 83, 77, 76, 79, 76, 88, 89, 90, 71, 72,
  1430. 93, 74, 76, 96, 77, 78, 99, 3, 4, 5,
  1431. 103, 104, 105, 106, 107, 108, 76, 79, 79, 112,
  1432. 113, 114, 115, 116, 117, 227, -1, -1, 121, 122,
  1433. 123, 124, 125, 126, -1, 128, 129, -1, 131, 132,
  1434. 137, 138, 139, 140, 141, -1, -1, -1, -1, -1,
  1435. 143, 144, 145, 146, 147, 148, 149, 150, 151, 152,
  1436. 153, 154, 131, -1, 157, 158, 163, 164, 71, 72,
  1437. 71, 72, -1, 74, 77, 168, 77, 78, -1, -1,
  1438. 173, 174, 175, 176, 177, 178, -1, 180, 181, 71,
  1439. 72, 184, 74, 186, 187, 77, 78, 190, -1, 192,
  1440. 193, -1, -1, 196, 197, 198, -1, 200, -1, -1,
  1441. 71, 72, -1, -1, 207, 208, 77, 210, -1, 212,
  1442. -1, -1, 215, 216, 217, -1, -1, 71, 72, -1,
  1443. 74, 224, 225, 77, 78, -1, -1, -1, 156, -1,
  1444. 233, 234, 235, 236, 237, 71, 72, 71, 72, -1,
  1445. -1, 77, 78, 77, 78, 248, -1, 250, -1, -1,
  1446. -1, -1, -1, -1, -1, 258, 259, 260, 261, 46,
  1447. 47, 264, -1, 266, 267, -1, -1, -1, 55, 272,
  1448. -1, -1, 59, 60, 61, 62, 63, -1, -1, 66,
  1449. 67, -1, -1, -1, -1, -1, -1, -1, 291, 292,
  1450. 218, -1, -1, -1, -1, -1, 83, 300, 301, -1,
  1451. -1, 88, 305, -1, -1, 308, -1, 310, -1, -1,
  1452. 238, 239, -1, 241, 242, -1, 244, 245, -1, -1,
  1453. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1454. -1, -1, -1, -1, -1, 263, -1, -1, -1, -1,
  1455. -1, -1, -1, -1, -1, -1, -1, -1, -1, 136,
  1456. -1, -1, -1, -1, -1, -1, -1, 285, -1, -1,
  1457. -1, 289, -1, -1, -1, -1, -1, -1, 296, -1,
  1458. -1, -1, -1, -1, -1, 303, -1, -1, 306, -1,
  1459. -1, 168, -1, 311, -1, -1, -1, -1, -1, -1,
  1460. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1461. -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
  1462. -1, -1, -1, -1, 201, 3, 4, 5, 6, 7,
  1463. 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
  1464. 18, 19, 20, 21, 22, 23, 24, 25, 26, 27,
  1465. 28, 29, 30, 31, 32, 33, 34, 35, 36, 37,
  1466. 38, 39, 40, 41, 42, 43, 44, 45, 46, 47,
  1467. 48, 49, 50, 51, 52, 53, 54, 55, 56, 57,
  1468. 58, 59, 60, 61, 62, 63, 64, 65, 66, 67,
  1469. 68, 69, -1, -1, -1, -1, -1, 75, 3, 4,
  1470. 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
  1471. 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  1472. 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
  1473. 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
  1474. 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
  1475. 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
  1476. 65, 66, 67, 68, 69
  1477. };
  1478. /* STOS_[STATE-NUM] -- The (internal number of the) accessing
  1479. symbol of state STATE-NUM. */
  1480. const unsigned char
  1481. EasyMeshParser::yystos_[] =
  1482. {
  1483. 0, 3, 4, 5, 6, 7, 8, 9, 10, 11,
  1484. 12, 13, 14, 15, 16, 17, 18, 19, 20, 21,
  1485. 22, 23, 24, 25, 26, 27, 28, 29, 30, 31,
  1486. 32, 33, 34, 35, 36, 37, 38, 39, 40, 41,
  1487. 42, 43, 44, 45, 46, 47, 48, 49, 50, 51,
  1488. 52, 53, 54, 55, 56, 57, 58, 59, 60, 61,
  1489. 62, 63, 64, 65, 66, 67, 68, 69, 75, 81,
  1490. 82, 83, 84, 85, 86, 87, 88, 89, 91, 92,
  1491. 93, 71, 72, 77, 95, 71, 72, 74, 77, 78,
  1492. 94, 98, 74, 94, 98, 74, 94, 98, 74, 94,
  1493. 98, 94, 94, 94, 94, 94, 94, 94, 94, 94,
  1494. 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
  1495. 94, 94, 94, 94, 94, 94, 94, 94, 78, 94,
  1496. 97, 94, 94, 97, 94, 95, 95, 89, 89, 89,
  1497. 89, 89, 94, 95, 94, 97, 94, 97, 94, 97,
  1498. 95, 95, 95, 95, 95, 94, 94, 95, 95, 0,
  1499. 0, 82, 84, 75, 75, 82, 71, 72, 77, 94,
  1500. 95, 94, 95, 94, 94, 94, 94, 94, 94, 94,
  1501. 94, 94, 94, 94, 94, 94, 94, 94, 94, 94,
  1502. 94, 94, 94, 94, 94, 94, 94, 94, 94, 97,
  1503. 94, 95, 82, 82, 82, 82, 82, 94, 94, 94,
  1504. 94, 94, 94, 94, 94, 94, 94, 94, 94, 71,
  1505. 72, 73, 99, 99, 94, 94, 82, 82, 76, 90,
  1506. 94, 95, 79, 94, 94, 94, 94, 94, 94, 94,
  1507. 94, 94, 94, 94, 94, 94, 94, 79, 94, 94,
  1508. 94, 94, 95, 76, 76, 76, 76, 76, 94, 94,
  1509. 94, 94, 94, 94, 94, 99, 78, 94, 96, 94,
  1510. 76, 90, 94, 94, 94, 94, 94, 99, 99, 99,
  1511. 99, 99, 99, 94, 94, 94, 94, 94, 94, 99,
  1512. 94, 94, 94, 96, 94, 79, 99, 99, 79, 94,
  1513. 94, 96, 79, 99, 79, 94, 94, 99, 94, 99,
  1514. 94, 94, 99
  1515. };
  1516. #if YYDEBUG
  1517. /* TOKEN_NUMBER_[YYLEX-NUM] -- Internal symbol number corresponding
  1518. to YYLEX-NUM. */
  1519. const unsigned short int
  1520. EasyMeshParser::yytoken_number_[] =
  1521. {
  1522. 0, 256, 257, 258, 259, 260, 261, 262, 263, 264,
  1523. 265, 266, 267, 268, 269, 270, 271, 272, 273, 274,
  1524. 275, 276, 277, 278, 279, 280, 281, 282, 283, 284,
  1525. 285, 286, 287, 288, 289, 290, 291, 292, 293, 294,
  1526. 295, 296, 297, 298, 299, 300, 301, 302, 303, 304,
  1527. 305, 306, 307, 308, 309, 310, 311, 312, 313, 314,
  1528. 315, 316, 317, 318, 319, 320, 321, 322, 323, 324,
  1529. 325, 326, 327, 328, 329, 91, 93, 45, 40, 41
  1530. };
  1531. #endif
  1532. /* YYR1[YYN] -- Symbol number of symbol that rule YYN derives. */
  1533. const unsigned char
  1534. EasyMeshParser::yyr1_[] =
  1535. {
  1536. 0, 80, 81, 82, 82, 83, 83, 84, 84, 85,
  1537. 85, 85, 85, 85, 85, 86, 86, 86, 86, 86,
  1538. 87, 88, 89, 90, 91, 91, 91, 91, 91, 91,
  1539. 91, 91, 91, 91, 91, 91, 92, 92, 92, 92,
  1540. 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
  1541. 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
  1542. 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
  1543. 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
  1544. 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
  1545. 92, 92, 92, 92, 92, 92, 92, 92, 92, 92,
  1546. 92, 92, 92, 92, 92, 92, 92, 93, 93, 93,
  1547. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  1548. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  1549. 93, 93, 93, 93, 93, 93, 93, 93, 93, 93,
  1550. 93, 93, 93, 94, 94, 94, 94, 95, 95, 95,
  1551. 95, 96, 96, 97, 97, 98, 98, 99, 99, 99
  1552. };
  1553. /* YYR2[YYN] -- Number of symbols composing right hand side of rule YYN. */
  1554. const unsigned char
  1555. EasyMeshParser::yyr2_[] =
  1556. {
  1557. 0, 2, 2, 1, 2, 1, 3, 1, 2, 1,
  1558. 1, 1, 1, 4, 4, 4, 4, 4, 4, 4,
  1559. 2, 1, 1, 1, 5, 2, 2, 5, 2, 2,
  1560. 5, 2, 2, 5, 2, 2, 2, 2, 2, 4,
  1561. 2, 2, 2, 2, 5, 3, 2, 5, 4, 3,
  1562. 5, 4, 3, 5, 4, 3, 3, 2, 3, 2,
  1563. 3, 2, 5, 4, 3, 5, 4, 3, 5, 4,
  1564. 3, 4, 3, 4, 3, 4, 3, 3, 2, 3,
  1565. 2, 3, 2, 3, 2, 3, 2, 3, 2, 2,
  1566. 2, 2, 4, 2, 2, 1, 1, 1, 2, 2,
  1567. 4, 1, 1, 1, 1, 1, 1, 8, 7, 6,
  1568. 5, 4, 3, 4, 4, 5, 4, 2, 3, 2,
  1569. 5, 3, 3, 5, 3, 3, 6, 5, 4, 5,
  1570. 4, 4, 3, 3, 2, 3, 2, 11, 10, 9,
  1571. 8, 7, 6, 1, 2, 1, 2, 1, 2, 1,
  1572. 2, 3, 4, 3, 5, 3, 6, 1, 1, 1
  1573. };
  1574. #if YYDEBUG || YYERROR_VERBOSE || YYTOKEN_TABLE
  1575. /* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
  1576. First, the terminals, then, starting at \a yyntokens_, nonterminals. */
  1577. const char*
  1578. const EasyMeshParser::yytname_[] =
  1579. {
  1580. "T_END", "error", "$undefined", "T_LOOP", "T_COLOR", "T_ACOLOR",
  1581. "T_BCOLOR", "T_VCOLOR", "T_TOGGLESCALEWINDING", "T_TOGGLEQUADWEIGHTING",
  1582. "T_TOGGLEPOSTBUILDNORMAL", "T_TOGGLEVERTNOCLEANUP", "T_VERTMERGE",
  1583. "T_VERTSEPARATE", "T_TRANSLATEX", "T_ROTATEX", "T_TAPERX", "T_TWISTX",
  1584. "T_SHEARX", "T_STRETCHX", "T_BENDXY", "T_BENDXZ", "T_SCALEX",
  1585. "T_MIRRORX", "T_TRANSLATEY", "T_ROTATEY", "T_TAPERY", "T_TWISTY",
  1586. "T_SHEARY", "T_STRETCHY", "T_BENDYX", "T_BENDYZ", "T_SCALEY",
  1587. "T_MIRRORY", "T_TRANSLATEZ", "T_ROTATEZ", "T_TAPERZ", "T_TWISTZ",
  1588. "T_SHEARZ", "T_STRETCHZ", "T_BENDZX", "T_BENDZY", "T_SCALEZ",
  1589. "T_MIRRORZ", "T_TRANSLATE", "T_ROTATE", "T_SCALE", "T_RADIALJITTER",
  1590. "T_SPLITTRIANGLE", "T_SMOOTHMESH", "T_DUPLICATE", "T_CSGUNION",
  1591. "T_CSGSUBSTRACT", "T_CSGSUBSTRACTLOSS", "T_CSGAND", "T_CSGXOR",
  1592. "T_CHAMFER", "T_CYLINDER", "T_BOX", "T_SMOOTHCHAMFBOX", "T_FLATCHAMFBOX",
  1593. "T_SPHERE", "T_CAPSULE", "T_STAR", "T_EXPANDEDSTAR", "T_DISC",
  1594. "T_TRIANGLE", "T_QUAD", "T_COG", "T_TORUS", "T_ERROR", "F_NUMBER",
  1595. "I_NUMBER", "BOOLEAN", "COLOR", "'['", "']'", "'-'", "'('", "')'",
  1596. "$accept", "mesh_description", "mesh_expression_list", "mesh_expression",
  1597. "mesh_command_list", "mesh_command", "post_brace_command", "doloop",
  1598. "pre_brace_command", "mesh_open", "mesh_close", "color_command",
  1599. "transform_command", "primitive_command", "fv", "iv", "v2", "v3", "v4",
  1600. "bv", 0
  1601. };
  1602. #endif
  1603. #if YYDEBUG
  1604. /* YYRHS -- A `-1'-separated list of the rules' RHS. */
  1605. const EasyMeshParser::rhs_number_type
  1606. EasyMeshParser::yyrhs_[] =
  1607. {
  1608. 81, 0, -1, 82, 0, -1, 83, -1, 83, 82,
  1609. -1, 84, -1, 89, 82, 90, -1, 85, -1, 85,
  1610. 84, -1, 91, -1, 92, -1, 93, -1, 86, -1,
  1611. 88, 75, 82, 90, -1, 87, 75, 82, 76, -1,
  1612. 51, 89, 82, 76, -1, 52, 89, 82, 76, -1,
  1613. 53, 89, 82, 76, -1, 54, 89, 82, 76, -1,
  1614. 55, 89, 82, 76, -1, 3, 95, -1, 50, -1,
  1615. 75, -1, 76, -1, 4, 94, 94, 94, 94, -1,
  1616. 4, 98, -1, 4, 74, -1, 5, 94, 94, 94,
  1617. 94, -1, 5, 98, -1, 5, 74, -1, 6, 94,
  1618. 94, 94, 94, -1, 6, 98, -1, 6, 74, -1,
  1619. 7, 94, 94, 94, 94, -1, 7, 98, -1, 7,
  1620. 74, -1, 14, 94, -1, 24, 94, -1, 34, 94,
  1621. -1, 44, 94, 94, 94, -1, 44, 97, -1, 15,
  1622. 94, -1, 25, 94, -1, 35, 94, -1, 45, 94,
  1623. 94, 94, 94, -1, 45, 94, 97, -1, 47, 94,
  1624. -1, 16, 94, 94, 94, 99, -1, 16, 94, 94,
  1625. 94, -1, 16, 94, 94, -1, 26, 94, 94, 94,
  1626. 99, -1, 26, 94, 94, 94, -1, 26, 94, 94,
  1627. -1, 36, 94, 94, 94, 99, -1, 36, 94, 94,
  1628. 94, -1, 36, 94, 94, -1, 17, 94, 94, -1,
  1629. 17, 94, -1, 27, 94, 94, -1, 27, 94, -1,
  1630. 37, 94, 94, -1, 37, 94, -1, 18, 94, 94,
  1631. 94, 99, -1, 18, 94, 94, 94, -1, 18, 94,
  1632. 94, -1, 28, 94, 94, 94, 99, -1, 28, 94,
  1633. 94, 94, -1, 28, 94, 94, -1, 38, 94, 94,
  1634. 94, 99, -1, 38, 94, 94, 94, -1, 38, 94,
  1635. 94, -1, 19, 94, 94, 94, -1, 19, 94, 94,
  1636. -1, 29, 94, 94, 94, -1, 29, 94, 94, -1,
  1637. 39, 94, 94, 94, -1, 39, 94, 94, -1, 20,
  1638. 94, 94, -1, 20, 94, -1, 21, 94, 94, -1,
  1639. 21, 94, -1, 30, 94, 94, -1, 30, 94, -1,
  1640. 31, 94, 94, -1, 31, 94, -1, 40, 94, 94,
  1641. -1, 40, 94, -1, 41, 94, 94, -1, 41, 94,
  1642. -1, 22, 94, -1, 32, 94, -1, 42, 94, -1,
  1643. 46, 94, 94, 94, -1, 46, 97, -1, 46, 94,
  1644. -1, 23, -1, 33, -1, 43, -1, 56, 94, -1,
  1645. 48, 95, -1, 49, 95, 95, 95, -1, 8, -1,
  1646. 9, -1, 10, -1, 11, -1, 12, -1, 13, -1,
  1647. 57, 95, 94, 94, 94, 99, 99, 99, -1, 57,
  1648. 95, 94, 94, 94, 99, 99, -1, 57, 95, 94,
  1649. 94, 94, 99, -1, 57, 95, 94, 94, 94, -1,
  1650. 57, 95, 94, 94, -1, 61, 95, 94, -1, 62,
  1651. 95, 94, 94, -1, 69, 95, 94, 94, -1, 58,
  1652. 94, 94, 94, 94, -1, 58, 94, 94, 94, -1,
  1653. 58, 94, -1, 58, 97, 94, -1, 58, 97, -1,
  1654. 59, 94, 94, 94, 94, -1, 59, 94, 94, -1,
  1655. 59, 97, 94, -1, 60, 94, 94, 94, 94, -1,
  1656. 60, 94, 94, -1, 60, 97, 94, -1, 63, 95,
  1657. 94, 94, 99, 99, -1, 63, 95, 94, 94, 99,
  1658. -1, 63, 95, 94, 94, -1, 64, 95, 94, 94,
  1659. 94, -1, 64, 95, 94, 94, -1, 65, 95, 94,
  1660. 99, -1, 65, 95, 94, -1, 66, 94, 99, -1,
  1661. 66, 94, -1, 67, 94, 99, -1, 67, 94, -1,
  1662. 68, 95, 94, 94, 94, 94, 94, 94, 94, 94,
  1663. 99, -1, 68, 95, 94, 94, 94, 94, 94, 94,
  1664. 94, 94, -1, 68, 95, 94, 94, 94, 94, 94,
  1665. 94, 94, -1, 68, 95, 94, 96, 96, 96, 94,
  1666. 99, -1, 68, 95, 94, 96, 96, 96, 94, -1,
  1667. 68, 95, 94, 96, 96, 96, -1, 71, -1, 77,
  1668. 94, -1, 72, -1, 77, 95, -1, 72, -1, 77,
  1669. 95, -1, 71, -1, 77, 94, -1, 78, 94, 79,
  1670. -1, 78, 94, 94, 79, -1, 78, 94, 79, -1,
  1671. 78, 94, 94, 94, 79, -1, 78, 94, 79, -1,
  1672. 78, 94, 94, 94, 94, 79, -1, 73, -1, 72,
  1673. -1, 71, -1
  1674. };
  1675. /* YYPRHS[YYN] -- Index of the first RHS symbol of rule number YYN in
  1676. YYRHS. */
  1677. const unsigned short int
  1678. EasyMeshParser::yyprhs_[] =
  1679. {
  1680. 0, 0, 3, 6, 8, 11, 13, 17, 19, 22,
  1681. 24, 26, 28, 30, 35, 40, 45, 50, 55, 60,
  1682. 65, 68, 70, 72, 74, 80, 83, 86, 92, 95,
  1683. 98, 104, 107, 110, 116, 119, 122, 125, 128, 131,
  1684. 136, 139, 142, 145, 148, 154, 158, 161, 167, 172,
  1685. 176, 182, 187, 191, 197, 202, 206, 210, 213, 217,
  1686. 220, 224, 227, 233, 238, 242, 248, 253, 257, 263,
  1687. 268, 272, 277, 281, 286, 290, 295, 299, 303, 306,
  1688. 310, 313, 317, 320, 324, 327, 331, 334, 338, 341,
  1689. 344, 347, 350, 355, 358, 361, 363, 365, 367, 370,
  1690. 373, 378, 380, 382, 384, 386, 388, 390, 399, 407,
  1691. 414, 420, 425, 429, 434, 439, 445, 450, 453, 457,
  1692. 460, 466, 470, 474, 480, 484, 488, 495, 501, 506,
  1693. 512, 517, 522, 526, 530, 533, 537, 540, 552, 563,
  1694. 573, 582, 590, 597, 599, 602, 604, 607, 609, 612,
  1695. 614, 617, 621, 626, 630, 636, 640, 647, 649, 651
  1696. };
  1697. /* YYRLINE[YYN] -- Source line where rule number YYN was defined. */
  1698. const unsigned short int
  1699. EasyMeshParser::yyrline_[] =
  1700. {
  1701. 0, 96, 96, 100, 101, 105, 106, 110, 111, 115,
  1702. 116, 117, 118, 119, 120, 124, 125, 126, 127, 128,
  1703. 132, 136, 140, 144, 148, 149, 150, 153, 154, 155,
  1704. 158, 159, 160, 163, 164, 165, 171, 172, 173, 174,
  1705. 175, 176, 177, 178, 179, 180, 181, 182, 183, 184,
  1706. 185, 186, 187, 188, 189, 190, 191, 192, 193, 194,
  1707. 195, 196, 197, 198, 199, 200, 201, 202, 203, 204,
  1708. 205, 206, 207, 208, 209, 210, 211, 212, 213, 214,
  1709. 215, 216, 217, 218, 219, 220, 221, 222, 223, 224,
  1710. 225, 226, 227, 228, 229, 230, 231, 232, 233, 234,
  1711. 235, 236, 237, 238, 239, 240, 241, 245, 246, 247,
  1712. 248, 249, 250, 251, 252, 253, 254, 255, 256, 257,
  1713. 258, 259, 260, 261, 262, 263, 264, 265, 266, 267,
  1714. 268, 269, 270, 271, 272, 273, 274, 275, 276, 277,
  1715. 278, 279, 280, 285, 286, 287, 288, 292, 293, 294,
  1716. 295, 300, 301, 305, 306, 310, 311, 316, 317, 318
  1717. };
  1718. // Print the state stack on the debug stream.
  1719. void
  1720. EasyMeshParser::yystack_print_ ()
  1721. {
  1722. *yycdebug_ << "Stack now";
  1723. for (state_stack_type::const_iterator i = yystate_stack_.begin ();
  1724. i != yystate_stack_.end (); ++i)
  1725. *yycdebug_ << ' ' << *i;
  1726. *yycdebug_ << std::endl;
  1727. }
  1728. // Report on the debug stream that the rule \a yyrule is going to be reduced.
  1729. void
  1730. EasyMeshParser::yy_reduce_print_ (int yyrule)
  1731. {
  1732. unsigned int yylno = yyrline_[yyrule];
  1733. int yynrhs = yyr2_[yyrule];
  1734. /* Print the symbols being reduced, and their result. */
  1735. *yycdebug_ << "Reducing stack by rule " << yyrule - 1
  1736. << " (line " << yylno << "):" << std::endl;
  1737. /* The symbols being reduced. */
  1738. for (int yyi = 0; yyi < yynrhs; yyi++)
  1739. YY_SYMBOL_PRINT (" $" << yyi + 1 << " =",
  1740. yyrhs_[yyprhs_[yyrule] + yyi],
  1741. &(yysemantic_stack_[(yynrhs) - (yyi + 1)]),
  1742. &(yylocation_stack_[(yynrhs) - (yyi + 1)]));
  1743. }
  1744. #endif // YYDEBUG
  1745. /* YYTRANSLATE(YYLEX) -- Bison symbol number corresponding to YYLEX. */
  1746. EasyMeshParser::token_number_type
  1747. EasyMeshParser::yytranslate_ (int t)
  1748. {
  1749. static
  1750. const token_number_type
  1751. translate_table[] =
  1752. {
  1753. 0, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1754. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1755. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1756. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1757. 78, 79, 2, 2, 2, 77, 2, 2, 2, 2,
  1758. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1759. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1760. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1761. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1762. 2, 75, 2, 76, 2, 2, 2, 2, 2, 2,
  1763. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1764. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1765. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1766. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1767. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1768. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1769. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1770. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1771. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1772. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1773. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1774. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1775. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1776. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1777. 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
  1778. 2, 2, 2, 2, 2, 2, 1, 2, 3, 4,
  1779. 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
  1780. 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
  1781. 25, 26, 27, 28, 29, 30, 31, 32, 33, 34,
  1782. 35, 36, 37, 38, 39, 40, 41, 42, 43, 44,
  1783. 45, 46, 47, 48, 49, 50, 51, 52, 53, 54,
  1784. 55, 56, 57, 58, 59, 60, 61, 62, 63, 64,
  1785. 65, 66, 67, 68, 69, 70, 71, 72, 73, 74
  1786. };
  1787. if ((unsigned int) t <= yyuser_token_number_max_)
  1788. return translate_table[t];
  1789. else
  1790. return yyundef_token_;
  1791. }
  1792. const int EasyMeshParser::yyeof_ = 0;
  1793. const int EasyMeshParser::yylast_ = 554;
  1794. const int EasyMeshParser::yynnts_ = 20;
  1795. const int EasyMeshParser::yyempty_ = -2;
  1796. const int EasyMeshParser::yyfinal_ = 159;
  1797. const int EasyMeshParser::yyterror_ = 1;
  1798. const int EasyMeshParser::yyerrcode_ = 256;
  1799. const int EasyMeshParser::yyntokens_ = 80;
  1800. const unsigned int EasyMeshParser::yyuser_token_number_max_ = 329;
  1801. const EasyMeshParser::token_number_type EasyMeshParser::yyundef_token_ = 2;
  1802. } // lol
  1803. /* Line 1053 of lalr1.cc */
  1804. #line 2241 "generated/easymesh-parser.cpp"
  1805. /* Line 1055 of lalr1.cc */
  1806. #line 321 "easymesh/easymesh-parser.y"
  1807. void lol::EasyMeshParser::error(const EasyMeshParser::location_type& l,
  1808. const std::string& m)
  1809. {
  1810. mc.Error(l, m);
  1811. }