You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1386 lines
65 KiB

6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
  1. /* parser generated by jison 0.4.18 */
  2. /*
  3. Returns a Parser object of the following structure:
  4. Parser: {
  5. yy: {}
  6. }
  7. Parser.prototype: {
  8. yy: {},
  9. trace: function(),
  10. symbols_: {associative list: name ==> number},
  11. terminals_: {associative list: number ==> name},
  12. productions_: [...],
  13. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate, $$, _$),
  14. table: [...],
  15. defaultActions: {...},
  16. parseError: function(str, hash),
  17. parse: function(input),
  18. lexer: {
  19. EOF: 1,
  20. parseError: function(str, hash),
  21. setInput: function(input),
  22. input: function(),
  23. unput: function(str),
  24. more: function(),
  25. less: function(n),
  26. pastInput: function(),
  27. upcomingInput: function(),
  28. showPosition: function(),
  29. test_match: function(regex_match_array, rule_index),
  30. next: function(),
  31. lex: function(),
  32. begin: function(condition),
  33. popState: function(),
  34. _currentRules: function(),
  35. topState: function(),
  36. pushState: function(condition),
  37. options: {
  38. ranges: boolean (optional: true ==> token location info will include a .range[] member)
  39. flex: boolean (optional: true ==> flex-like lexing behaviour where the rules are tested exhaustively to find the longest match)
  40. backtrack_lexer: boolean (optional: true ==> lexer regexes are tested in order and for each matching regex the action code is invoked; the lexer terminates the scan when a token is returned by the action code)
  41. },
  42. performAction: function(yy, yy_, $avoiding_name_collisions, YY_START),
  43. rules: [...],
  44. conditions: {associative list: name ==> set},
  45. }
  46. }
  47. token location info (@$, _$, etc.): {
  48. first_line: n,
  49. last_line: n,
  50. first_column: n,
  51. last_column: n,
  52. range: [start_number, end_number] (where the numbers are indexes into the input string, regular zero-based)
  53. }
  54. the parseError function receives a 'hash' object with these members for lexer and parser errors: {
  55. text: (matched text)
  56. token: (the produced terminal token, if any)
  57. line: (yylineno)
  58. }
  59. while parser (grammar) errors will also provide these members, i.e. parser errors deliver a superset of attributes: {
  60. loc: (yylloc)
  61. expected: (string describing the set of expected tokens)
  62. recoverable: (boolean: TRUE when the parser has a error recovery rule available for this particular error)
  63. }
  64. */
  65. var jaz = (function(){
  66. var o=function(k,v,o,l){for(o=o||{},l=k.length;l--;o[k[l]]=v);return o},$V0=[1,14],$V1=[1,31],$V2=[1,59],$V3=[1,15],$V4=[1,16],$V5=[1,17],$V6=[1,18],$V7=[1,19],$V8=[1,20],$V9=[1,23],$Va=[1,21],$Vb=[1,50],$Vc=[1,51],$Vd=[1,48],$Ve=[1,49],$Vf=[1,52],$Vg=[1,53],$Vh=[1,57],$Vi=[1,58],$Vj=[1,32],$Vk=[1,33],$Vl=[1,34],$Vm=[1,37],$Vn=[5,17,18,19,22,24,27,29,30,31,32,34,35,80,82,90,91,92,93,97,98,102,103,107,110],$Vo=[5,17,18,19,22,24,26,27,29,30,31,32,34,35,80,82,90,91,92,93,97,98,102,103,107,110],$Vp=[1,72],$Vq=[1,73],$Vr=[1,74],$Vs=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,61,63,65,67,69,71,72,74,75,76,77,79,80,82,83,85,86,87,88,92,93,97,98,102,103,107,110,111],$Vt=[2,95],$Vu=[1,88],$Vv=[1,89],$Vw=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,55,56,80,82,90,91,92,93,97,98,102,103,107,110,111],$Vx=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,54,55,56,59,61,63,65,67,69,71,72,74,75,76,77,79,80,82,83,85,86,87,88,90,91,92,93,97,98,102,103,107,111],$Vy=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,80,82,90,91,92,93,97,98,102,103,107,110,111],$Vz=[2,109],$VA=[1,96],$VB=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,80,82,90,91,92,93,97,98,102,103,107,110,111],$VC=[1,102],$VD=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,61,80,82,90,91,92,93,97,98,102,103,107,110,111],$VE=[1,105],$VF=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,61,63,80,82,90,91,92,93,97,98,102,103,107,110,111],$VG=[1,106],$VH=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,61,63,65,80,82,90,91,92,93,97,98,102,103,107,110,111],$VI=[1,107],$VJ=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,61,63,65,67,80,82,90,91,92,93,97,98,102,103,107,110,111],$VK=[1,108],$VL=[1,109],$VM=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,61,63,65,67,69,71,80,82,90,91,92,93,97,98,102,103,107,110,111],$VN=[1,110],$VO=[1,111],$VP=[1,112],$VQ=[1,113],$VR=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,61,63,65,67,69,71,72,74,75,76,80,82,90,91,92,93,97,98,102,103,107,110,111],$VS=[1,114],$VT=[1,115],$VU=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,61,63,65,67,69,71,72,74,75,76,77,79,90,91,92,93,97,98,102,103,107,110,111],$VV=[1,116],$VW=[1,117],$VX=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,61,63,65,67,69,71,72,74,75,76,77,79,80,82,90,91,92,93,97,98,102,103,107,110,111],$VY=[1,118],$VZ=[1,119],$V_=[1,120],$V$=[1,121],$V01=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,61,63,65,67,69,71,72,74,75,76,77,79,80,82,83,85,86,87,90,91,92,93,97,98,102,103,107,110,111],$V11=[1,122],$V21=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,50,52,54,55,56,59,61,63,65,67,69,71,72,74,75,76,77,79,80,82,83,85,86,87,88,90,91,92,93,97,98,102,103,107,110,111],$V31=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,54,55,56,59,61,63,65,67,69,71,72,74,75,76,77,79,80,82,83,85,86,87,88,90,91,92,93,97,98,100,102,103,107,110,111],$V41=[1,166],$V51=[21,23,111],$V61=[1,188],$V71=[5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,56,80,82,90,91,92,93,97,98,102,103,107,110,111],$V81=[1,200],$V91=[21,23];
  67. var parser = {trace: function trace () { },
  68. yy: {},
  69. symbols_: {"error":2,"allStatments":3,"statmentList":4,"EOF":5,"statment":6,"functionDefinitionStatment":7,"templateDefinitionStatment":8,"ifStatment":9,"forStatment":10,"whileStatment":11,"doWhileStatment":12,"returnStatment":13,"block":14,"expressionStatment":15,"includeStatment":16,"function":17,"IDENTIFIER":18,"(":19,"identifierList":20,")":21,"template":22,",":23,"if":24,"expression":25,"else":26,"for":27,";":28,"while":29,"do":30,"return":31,"include":32,"STRING":33,"{":34,"}":35,"e17":36,"leftHandExpression":37,"=":38,"+=":39,"-=":40,"*=":41,"/=":42,"%=":43,"<<=":44,">>=":45,"&=":46,"|=":47,"^=":48,"<==":49,"==>":50,"<--":51,"-->":52,"e16":53,"===":54,"?":55,":":56,"rightArray":57,"e15":58,"||":59,"e14":60,"&&":61,"e13":62,"|":63,"e12":64,"^":65,"e11":66,"&":67,"e10":68,"==":69,"e9":70,"!=":71,"<=":72,"e7":73,">=":74,"<":75,">":76,"<<":77,"e6":78,">>":79,"+":80,"e5":81,"-":82,"*":83,"e4":84,"/":85,"\\\\":86,"%":87,"**":88,"e3":89,"++":90,"--":91,"!":92,"~":93,"e2":94,"functionCall":95,"e0":96,"DECNUMBER":97,"HEXNUMBER":98,"simpleLeftHandExpression":99,".":100,"declaration":101,"var":102,"signal":103,"input":104,"private":105,"output":106,"component":107,"array":108,"expressionList":109,"[":110,"]":111,"$accept":0,"$end":1},
  70. terminals_: {2:"error",5:"EOF",17:"function",18:"IDENTIFIER",19:"(",21:")",22:"template",23:",",24:"if",26:"else",27:"for",28:";",29:"while",30:"do",31:"return",32:"include",33:"STRING",34:"{",35:"}",38:"=",39:"+=",40:"-=",41:"*=",42:"/=",43:"%=",44:"<<=",45:">>=",46:"&=",47:"|=",48:"^=",49:"<==",50:"==>",51:"<--",52:"-->",54:"===",55:"?",56:":",59:"||",61:"&&",63:"|",65:"^",67:"&",69:"==",71:"!=",72:"<=",74:">=",75:"<",76:">",77:"<<",79:">>",80:"+",82:"-",83:"*",85:"/",86:"\\\\",87:"%",88:"**",90:"++",91:"--",92:"!",93:"~",97:"DECNUMBER",98:"HEXNUMBER",100:".",102:"var",103:"signal",104:"input",105:"private",106:"output",107:"component",110:"[",111:"]"},
  71. productions_: [0,[3,2],[4,2],[4,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[6,1],[7,6],[7,5],[8,6],[8,5],[20,3],[20,1],[9,7],[9,5],[10,9],[11,5],[12,6],[13,3],[13,2],[16,3],[16,2],[14,3],[15,2],[15,1],[25,1],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,3],[36,5],[36,1],[53,1],[53,1],[58,3],[58,1],[60,3],[60,1],[62,3],[62,1],[64,3],[64,1],[66,3],[66,1],[68,3],[68,3],[68,1],[70,3],[70,3],[70,3],[70,3],[70,1],[73,3],[73,3],[73,1],[78,3],[78,3],[78,1],[81,3],[81,3],[81,3],[81,3],[81,1],[84,3],[84,1],[89,2],[89,2],[89,2],[89,2],[89,2],[89,2],[89,1],[94,2],[94,2],[94,1],[94,1],[96,1],[96,1],[96,1],[96,3],[37,3],[37,1],[37,1],[101,2],[101,2],[101,3],[101,4],[101,3],[101,2],[99,2],[99,1],[95,4],[95,3],[109,3],[109,1],[57,1],[108,3]],
  72. performAction: function anonymous(yytext, yyleng, yylineno, yy, yystate /* action[1] */, $$ /* vstack */, _$ /* lstack */) {
  73. /* this == yyval */
  74. var $0 = $$.length - 1;
  75. switch (yystate) {
  76. case 1:
  77. // console.log(JSON.stringify($$[$0-1], null, 1));
  78. this.$ = { type: "BLOCK", statements: $$[$0-1].statments };
  79. setLines(this.$, _$[$0-1]);
  80. return this.$
  81. break;
  82. case 2:
  83. $$[$0-1].statments.push($$[$0]);
  84. setLines($$[$0-1], _$[$0-1], _$[$0]);
  85. break;
  86. case 3:
  87. this.$ = { type: "STATMENTLIST", statments: [$$[$0]] };
  88. setLines(this.$, _$[$0]);
  89. break;
  90. case 4: case 5: case 6: case 7: case 8: case 9: case 10: case 11: case 12: case 13: case 31: case 32: case 60: case 62: case 76: case 81: case 83: case 90: case 93: case 94: case 114:
  91. this.$ = $$[$0];
  92. break;
  93. case 14:
  94. this.$ = { type: "FUNCTIONDEF", name: $$[$0-4], params: $$[$0-2].identifiers, block: $$[$0]};
  95. setLines(this.$, _$[$0-5], _$[$0]);
  96. break;
  97. case 15:
  98. this.$ = { type: "FUNCTIONDEF", name: $$[$0-3], params: [], block: $$[$0] };
  99. setLines(this.$, _$[$0-4], _$[$0]);
  100. break;
  101. case 16:
  102. this.$ = { type: "TEMPLATEDEF", name: $$[$0-4], params: $$[$0-2].identifiers, block: $$[$0] };
  103. setLines(this.$, _$[$0-5], _$[$0]);
  104. break;
  105. case 17:
  106. this.$ = { type: "TEMPLATEDEF", name: $$[$0-3], params: [], block: $$[$0] };
  107. setLines(this.$, _$[$0-4], _$[$0]);
  108. break;
  109. case 18:
  110. $$[$0-2].identifiers.push($$[$0]);
  111. setLines($$[$0-2], _$[$0-2], _$[$0]);
  112. break;
  113. case 19:
  114. this.$ = { type: "IDENTIFIERLIST", identifiers: [$$[$0]] };
  115. setLines(this.$, _$[$0]);
  116. break;
  117. case 20:
  118. if ($$[$0-4].type == "NUMBER") {
  119. this.$ = !$$[$0-4].value.eq(0) ? $$[$0-2] : $$[$0];
  120. } else {
  121. this.$ = { type: "IF", condition: $$[$0-4], then: $$[$0-2], else: $$[$0] };
  122. }
  123. setLines(this.$, _$[$0-6], _$[$0]);
  124. break;
  125. case 21:
  126. if ($$[$0-2].type == "NUMBER") {
  127. this.$ = !$$[$0-2].value.eq(0) ? $$[$0] : { type: "NUMBER", value: bigInt(0) };
  128. } else {
  129. this.$ = { type: "IF", condition: $$[$0-2], then: $$[$0] };
  130. }
  131. setLines(this.$, _$[$0-4], _$[$0]);
  132. break;
  133. case 22:
  134. this.$ = { type: "FOR", init: $$[$0-6], condition: $$[$0-4], step: $$[$0-2], body: $$[$0] };
  135. setLines(this.$, _$[$0-8], _$[$0]);
  136. break;
  137. case 23:
  138. this.$ = { type: "WHILE", condition: $$[$0-2], body: $$[$0] };
  139. setLines(this.$, _$[$0-4], _$[$0]);
  140. break;
  141. case 24:
  142. this.$ = { type: "DOWHILE", condition: $$[$0-1], body: $$[$0-4] };
  143. setLines(this.$, _$[$0-5], _$[$0]);
  144. break;
  145. case 25:
  146. this.$ = { type: "RETURN", value: $$[$0-1] };
  147. setLines(this.$, _$[$0-2], _$[$0]);
  148. break;
  149. case 26:
  150. this.$ = { type: "RETURN", value: $$[$0] }
  151. setLines(this.$, _$[$0-1], _$[$0]);
  152. break;
  153. case 27:
  154. this.$ = { type: "INCLUDE", file: $$[$0-1] };
  155. setLines(this.$, _$[$0-2], _$[$0]);
  156. break;
  157. case 28:
  158. this.$ = { type: "INCLUDE", file: $$[$0] }
  159. setLines(this.$, _$[$0-1], _$[$0]);
  160. break;
  161. case 29:
  162. this.$ = { type: "BLOCK", statements: $$[$0-1].statments };
  163. setLines(this.$, _$[$0-2], _$[$0]);
  164. break;
  165. case 30:
  166. this.$ = $$[$0-1];
  167. break;
  168. case 33:
  169. this.$ = { type: "OP", op: "=", values: [$$[$0-2], $$[$0]] };
  170. setLines(this.$, _$[$0-2], _$[$0]);
  171. break;
  172. case 34:
  173. this.$ = { type: "OP", op: "+=", values: [$$[$0-2], $$[$0]] };
  174. setLines(this.$, _$[$0-2], _$[$0]);
  175. break;
  176. case 35:
  177. this.$ = { type: "OP", op: "-=", values: [$$[$0-2], $$[$0]] };
  178. setLines(this.$, _$[$0-2], _$[$0]);
  179. break;
  180. case 36:
  181. this.$ = { type: "OP", op: "*=", values: [$$[$0-2], $$[$0]] };
  182. setLines(this.$, _$[$0-2], _$[$0]);
  183. break;
  184. case 37:
  185. this.$ = { type: "OP", op: "/=", values: [$$[$0-2], $$[$0]] };
  186. setLines(this.$, _$[$0-2], _$[$0]);
  187. break;
  188. case 38:
  189. this.$ = { type: "OP", op: "%=", values: [$$[$0-2], $$[$0]] };
  190. setLines(this.$, _$[$0-2], _$[$0]);
  191. break;
  192. case 39:
  193. this.$ = { type: "OP", op: "<<=", values: [$$[$0-2], $$[$0]] };
  194. setLines(this.$, _$[$0-2], _$[$0]);
  195. break;
  196. case 40:
  197. this.$ = { type: "OP", op: ">>=", values: [$$[$0-2], $$[$0]] };
  198. setLines(this.$, _$[$0-2], _$[$0]);
  199. break;
  200. case 41:
  201. this.$ = { type: "OP", op: "&=", values: [$$[$0-2], $$[$0]] };
  202. setLines(this.$, _$[$0-2], _$[$0]);
  203. break;
  204. case 42:
  205. this.$ = { type: "OP", op: "|=", values: [$$[$0-2], $$[$0]] };
  206. setLines(this.$, _$[$0-2], _$[$0]);
  207. break;
  208. case 43:
  209. this.$ = { type: "OP", op: "^=", values: [$$[$0-2], $$[$0]] };
  210. setLines(this.$, _$[$0-2], _$[$0]);
  211. break;
  212. case 44:
  213. this.$ = { type: "OP", op: "<==", values: [$$[$0-2], $$[$0]] };
  214. setLines(this.$, _$[$0-2], _$[$0]);
  215. break;
  216. case 45:
  217. this.$ = { type: "OP", op: "<==", values: [$$[$0], $$[$0-2]] };
  218. setLines(this.$, _$[$0-2], _$[$0]);
  219. break;
  220. case 46:
  221. this.$ = { type: "OP", op: "<--", values: [$$[$0-2], $$[$0]] };
  222. setLines(this.$, _$[$0-2], _$[$0]);
  223. break;
  224. case 47:
  225. this.$ = { type: "OP", op: "<--", values: [$$[$0], $$[$0-2]] };
  226. setLines(this.$, _$[$0-2], _$[$0]);
  227. break;
  228. case 48:
  229. this.$ = { type: "OP", op: "===", values: [$$[$0-2], $$[$0]] };
  230. setLines(this.$, _$[$0-2], _$[$0]);
  231. break;
  232. case 49:
  233. if ($$[$0-4].type == "NUMBER") {
  234. this.$ = !$$[$0-4].value.eq(0) ? $$[$0-2] : $$[$0];
  235. } else {
  236. this.$ = { type: "OP", op: "?", values: [$$[$0-4], $$[$0-2], $$[$0]] };
  237. }
  238. setLines(this.$, _$[$0-4], _$[$0]);
  239. break;
  240. case 50: case 51: case 52: case 54: case 56: case 58:
  241. this.$ = $$[$0];
  242. break;
  243. case 53:
  244. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  245. this.$ = { type: "NUMBER", value: !$$[$0-2].value.eq(0) || !$$[$0].value.eq(0) ? bigInt(1) : bigInt(0) };
  246. } else {
  247. this.$ = { type: "OP", op: "||", values: [$$[$0-2], $$[$0]] };
  248. }
  249. setLines(this.$, _$[$0-2], _$[$0]);
  250. break;
  251. case 55:
  252. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  253. this.$ = { type: "NUMBER", value: !$$[$0-2].value.eq(0) && !$$[$0].value.eq(0) ? bigInt(1) : bigInt(0) };
  254. } else {
  255. this.$ = { type: "OP", op: "&&", values: [$$[$0-2], $$[$0]] };
  256. }
  257. setLines(this.$, _$[$0-2], _$[$0]);
  258. break;
  259. case 57:
  260. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  261. this.$ = { type: "NUMBER", value: $$[$0-2].value.or($$[$0].value).and(__MASK__) };
  262. } else {
  263. this.$ = { type: "OP", op: "|", values: [$$[$0-2], $$[$0]] };
  264. }
  265. setLines(this.$, _$[$0-2], _$[$0]);
  266. break;
  267. case 59:
  268. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  269. this.$ = { type: "NUMBER", value: $$[$0-2].value.or($$[$0].value).and(__MASK__) };
  270. } else {
  271. this.$ = { type: "OP", op: "^", values: [$$[$0-2], $$[$0]] };
  272. }
  273. setLines(this.$, _$[$0-2], _$[$0]);
  274. break;
  275. case 61:
  276. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  277. this.$ = { type: "NUMBER", value: $$[$0-2].value.and($$[$0].value).and(__MASK__) };
  278. } else {
  279. this.$ = { type: "OP", op: "&", values: [$$[$0-2], $$[$0]] };
  280. }
  281. setLines(this.$, _$[$0-2], _$[$0]);
  282. break;
  283. case 63:
  284. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  285. this.$ = { type: "NUMBER", value: $$[$0-2].value.equals($$[$0].value) ? bigInt(1) : bigInt(0) };
  286. } else {
  287. this.$ = { type: "OP", op: "==", values: [$$[$0-2], $$[$0]] };
  288. }
  289. setLines(this.$, _$[$0-2], _$[$0]);
  290. break;
  291. case 64:
  292. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  293. this.$ = { type: "NUMBER", value: $$[$0-2].value.eq($$[$0].value) ? bigInt(0) : bigInt(1) };
  294. } else {
  295. this.$ = { type: "OP", op: "!=", values: [$$[$0-2], $$[$0]] };
  296. }
  297. setLines(this.$, _$[$0-2], _$[$0]);
  298. break;
  299. case 65: case 70:
  300. this.$ = $$[$0]
  301. break;
  302. case 66:
  303. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  304. this.$ = { type: "NUMBER", value: $$[$0-2].value.lesserOrEquals($$[$0].value) ? bigInt(1) : bigInt(0) };
  305. } else {
  306. this.$ = { type: "OP", op: "<=", values: [$$[$0-2], $$[$0]] };
  307. }
  308. setLines(this.$, _$[$0-2], _$[$0]);
  309. break;
  310. case 67:
  311. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  312. this.$ = { type: "NUMBER", value: $$[$0-2].value.greaterOrEquals($$[$0].value) ? bigInt(1) : bigInt(0) };
  313. } else {
  314. this.$ = { type: "OP", op: ">=", values: [$$[$0-2], $$[$0]] };
  315. }
  316. setLines(this.$, _$[$0-2], _$[$0]);
  317. break;
  318. case 68:
  319. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  320. this.$ = { type: "NUMBER", value: $$[$0-2].value.lesser($$[$0].value) ? bigInt(1) : bigInt(0) };
  321. } else {
  322. this.$ = { type: "OP", op: "<", values: [$$[$0-2], $$[$0]] };
  323. }
  324. setLines(this.$, _$[$0-2], _$[$0]);
  325. break;
  326. case 69:
  327. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  328. this.$ = { type: "NUMBER", value: $$[$0-2].value.greater($$[$0].value) ? bigInt(1) : bigInt(0) };
  329. } else {
  330. this.$ = { type: "OP", op: ">", values: [$$[$0-2], $$[$0]] };
  331. }
  332. setLines(this.$, _$[$0-2], _$[$0]);
  333. break;
  334. case 71:
  335. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  336. let v = $$[$0].value.greater(256) ? 256 : $$[$0].value.value;
  337. this.$ = { type: "NUMBER", value: $$[$0-2].value.shiftLeft(v).and(__MASK__) };
  338. } else {
  339. this.$ = { type: "OP", op: "<<", values: [$$[$0-2], $$[$0]] };
  340. }
  341. setLines(this.$, _$[$0-2], _$[$0]);
  342. break;
  343. case 72:
  344. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  345. let v = $$[$0].value.greater(256) ? 256 : $$[$0].value.value;
  346. this.$ = {type: "NUMBER", value: $$[$0-2].value.shiftRight(v).and(__MASK__) };
  347. } else {
  348. this.$ = { type: "OP", op: ">>", values: [$$[$0-2], $$[$0]] };
  349. }
  350. setLines(this.$, _$[$0-2], _$[$0]);
  351. break;
  352. case 73:
  353. this.$ = $$[$0];
  354. break;
  355. case 74:
  356. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  357. this.$ = { type: "NUMBER", value: ($$[$0-2].value.plus($$[$0].value)).mod(__P__) };
  358. } else {
  359. this.$ = { type: "OP", op: "+", values: [$$[$0-2], $$[$0]] };
  360. }
  361. setLines(this.$, _$[$0-2], _$[$0]);
  362. break;
  363. case 75:
  364. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  365. this.$ = { type: "NUMBER", value: ($$[$0-2].value.plus(__P__).minus($$[$0].value)).mod(__P__) };
  366. } else {
  367. this.$ = { type: "OP", op: "-", values: [$$[$0-2], $$[$0]] };
  368. }
  369. setLines(this.$, _$[$0-2], _$[$0]);
  370. break;
  371. case 77:
  372. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  373. this.$ = { type: "NUMBER", value: ($$[$0-2].value.times($$[$0].value)).mod(__P__) };
  374. } else {
  375. this.$ = { type: "OP", op: "*", values: [$$[$0-2], $$[$0]] };
  376. }
  377. setLines(this.$, _$[$0-2], _$[$0]);
  378. break;
  379. case 78:
  380. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  381. this.$ = { type: "NUMBER", value: ($$[$0-2].value.times($$[$0].value.modInv(__P__))).mod(__P__) };
  382. } else {
  383. this.$ = { type: "OP", op: "/", values: [$$[$0-2], $$[$0]] };
  384. }
  385. setLines(this.$, _$[$0-2], _$[$0]);
  386. break;
  387. case 79:
  388. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  389. this.$ = { type: "NUMBER", value: ($$[$0-2].value.divide($$[$0].value)) };
  390. } else {
  391. this.$ = { type: "OP", op: "\\", values: [$$[$0-2], $$[$0]] };
  392. }
  393. setLines(this.$, _$[$0-2], _$[$0]);
  394. break;
  395. case 80:
  396. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  397. this.$ = { type: "NUMBER", value: $$[$0-2].value.mod($$[$0].value) };
  398. } else {
  399. this.$ = { type: "OP", op: "%", values: [$$[$0-2], $$[$0]] };
  400. }
  401. setLines(this.$, _$[$0-2], _$[$0]);
  402. break;
  403. case 82:
  404. if (($$[$0-2].type == "NUMBER") && ($$[$0].type == "NUMBER")) {
  405. this.$ = { type: "NUMBER", value: $$[$0-2].value.modPow($$[$0].value, __P__) };
  406. } else {
  407. this.$ = { type: "OP", op: "**", values: [$$[$0-2], $$[$0]] };
  408. }
  409. setLines(this.$, _$[$0-2], _$[$0]);
  410. break;
  411. case 84:
  412. this.$ = { type: "OP", op: "PLUSPLUSLEFT", values: [$$[$0]] };
  413. setLines(this.$, _$[$0-1], _$[$0]);
  414. break;
  415. case 85:
  416. this.$ = { type: "OP", op: "MINUSMINUSLEFT", values: [$$[$0]] };
  417. setLines(this.$, _$[$0-1], _$[$0]);
  418. break;
  419. case 86:
  420. this.$ = $$[$0];
  421. setLines(this.$, _$[$0-1], _$[$0]);
  422. break;
  423. case 87:
  424. if ($$[$0].type == "NUMBER") {
  425. this.$ = { type: "NUMBER", value: __P__.minus($$[$0].value).mod(__P__) };
  426. } else {
  427. this.$ = { type: "OP", op: "UMINUS", values: [$$[$0]] };
  428. }
  429. setLines(this.$, _$[$0-1], _$[$0]);
  430. break;
  431. case 88:
  432. if ($$[$0].type == "NUMBER") {
  433. this.$ = { type: "NUMBER", value: $$[$0].value.eq(0) ? bigInt(1) : bigInt(0) };
  434. } else {
  435. this.$ = { type: "OP", op: "!", values: [$$[$0]] };
  436. }
  437. setLines(this.$, _$[$0-1], _$[$0]);
  438. break;
  439. case 89:
  440. if ($$[$0].type == "NUMBER") {
  441. this.$ = { type: "NUMBER", value: $$[$0].value.xor(__MASK__) };
  442. } else {
  443. this.$ = { type: "OP", op: "~", values: [$$[$0]] };
  444. }
  445. setLines(this.$, _$[$0-1], _$[$0]);
  446. break;
  447. case 91:
  448. this.$ = {type: "OP", op: "PLUSPLUSRIGHT", values: [$$[$0-1]] };
  449. setLines(this.$, _$[$0-1], _$[$0]);
  450. break;
  451. case 92:
  452. this.$ = {type: "OP", op: "MINUSMINUSRIGHT", values: [$$[$0-1]] };
  453. setLines(this.$, _$[$0-1], _$[$0]);
  454. break;
  455. case 95: case 100: case 101:
  456. this.$ = $$[$0]
  457. break;
  458. case 96:
  459. this.$ = {type: "NUMBER", value: bigInt($$[$0]).mod(__P__) }
  460. setLines(this.$, _$[$0]);
  461. break;
  462. case 97:
  463. this.$ = {type: "NUMBER", value: bigInt($$[$0].substr(2).toUpperCase(), 16).mod(__P__) }
  464. setLines(this.$, _$[$0]);
  465. break;
  466. case 98:
  467. this.$ = $$[$0-1];
  468. setLines(this.$, _$[$0-2], _$[$0]);
  469. break;
  470. case 99:
  471. this.$ = {type: "PIN", component: $$[$0-2], pin: $$[$0] };
  472. setLines(this.$, _$[$0-2], _$[$0]);
  473. break;
  474. case 102:
  475. this.$ = {type: "DECLARE", declareType: "VARIABLE", name: $$[$0]}
  476. setLines(this.$, _$[$0-1], _$[$0]);
  477. break;
  478. case 103:
  479. this.$ = {type: "DECLARE", declareType: "SIGNAL", name: $$[$0]}
  480. setLines(this.$, _$[$0-1], _$[$0]);
  481. break;
  482. case 104:
  483. this.$ = {type: "DECLARE", declareType: "SIGNALIN", name: $$[$0]};
  484. setLines(this.$, _$[$0-2], _$[$0]);
  485. break;
  486. case 105:
  487. this.$ = {type: "DECLARE", declareType: "SIGNALIN", private: true, name: $$[$0]};
  488. setLines(this.$, _$[$0-3], _$[$0]);
  489. break;
  490. case 106:
  491. this.$ = {type: "DECLARE", declareType: "SIGNALOUT", name: $$[$0]};
  492. setLines(this.$, _$[$0-2], _$[$0]);
  493. break;
  494. case 107:
  495. this.$ = {type: "DECLARE", declareType: "COMPONENT", name: $$[$0]}
  496. setLines(this.$, _$[$0-1], _$[$0]);
  497. break;
  498. case 108:
  499. for (let i=0; i< $$[$0].values.length; i++) {
  500. $$[$0-1].selectors.push($$[$0].values[i]);
  501. }
  502. setLines($$[$0-1], _$[$0-1], _$[$0]);
  503. break;
  504. case 109:
  505. this.$ = {type: "VARIABLE", name: $$[$0] , selectors: []};
  506. setLines(this.$, _$[$0]);
  507. break;
  508. case 110:
  509. this.$ = {type: "FUNCTIONCALL", name: $$[$0-3], params: $$[$0-1].expressions}
  510. setLines(this.$, _$[$0-3], _$[$0]);
  511. break;
  512. case 111:
  513. this.$ = {type: "FUNCTIONCALL", name: $$[$0-2], params: []}
  514. setLines(this.$, _$[$0-2], _$[$0]);
  515. break;
  516. case 112:
  517. $$[$0-2].expressions.push($$[$0]);
  518. setLines(this.$, _$[$0-2], _$[$0]);
  519. break;
  520. case 113:
  521. this.$ = {type: "EXPRESSIONLST", expressions: [$$[$0]]};
  522. setLines(this.$, _$[$0]);
  523. break;
  524. case 115:
  525. this.$ = { type: "ARRAY", values: $$[$0-1].expressions};
  526. setLines(this.$, _$[$0-2], _$[$0]);
  527. break;
  528. }
  529. },
  530. table: [{3:1,4:2,6:3,7:4,8:5,9:6,10:7,11:8,12:9,13:10,14:11,15:12,16:13,17:$V0,18:$V1,19:$V2,22:$V3,24:$V4,25:22,27:$V5,29:$V6,30:$V7,31:$V8,32:$V9,34:$Va,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{1:[3]},{5:[1,60],6:61,7:4,8:5,9:6,10:7,11:8,12:9,13:10,14:11,15:12,16:13,17:$V0,18:$V1,19:$V2,22:$V3,24:$V4,25:22,27:$V5,29:$V6,30:$V7,31:$V8,32:$V9,34:$Va,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},o($Vn,[2,3]),o($Vo,[2,4]),o($Vo,[2,5]),o($Vo,[2,6]),o($Vo,[2,7]),o($Vo,[2,8]),o($Vo,[2,9]),o($Vo,[2,10]),o($Vo,[2,11]),o($Vo,[2,12]),o($Vo,[2,13]),{18:[1,62]},{18:[1,63]},{19:[1,64]},{19:[1,65]},{19:[1,66]},{6:67,7:4,8:5,9:6,10:7,11:8,12:9,13:10,14:11,15:12,16:13,17:$V0,18:$V1,19:$V2,22:$V3,24:$V4,25:22,27:$V5,29:$V6,30:$V7,31:$V8,32:$V9,34:$Va,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,25:68,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{4:69,6:3,7:4,8:5,9:6,10:7,11:8,12:9,13:10,14:11,15:12,16:13,17:$V0,18:$V1,19:$V2,22:$V3,24:$V4,25:22,27:$V5,29:$V6,30:$V7,31:$V8,32:$V9,34:$Va,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},o($Vo,[2,31],{28:[1,70]}),{33:[1,71]},o([5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,80,82,90,91,92,93,97,98,102,103,107,110,111],[2,32],{50:$Vp,52:$Vq,55:$Vr}),o($Vs,$Vt,{38:[1,75],39:[1,76],40:[1,77],41:[1,78],42:[1,79],43:[1,80],44:[1,81],45:[1,82],46:[1,83],47:[1,84],48:[1,85],49:[1,86],51:[1,87],90:$Vu,91:$Vv}),o($Vw,[2,50],{54:[1,90]}),o($Vx,[2,101],{108:92,100:[1,91],110:$Vm}),o([5,17,18,19,21,22,23,24,26,27,28,29,30,31,32,34,35,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,54,55,56,59,61,63,65,67,69,71,72,74,75,76,77,79,80,82,83,85,86,87,88,90,91,92,93,97,98,102,103,107,110,111],[2,100]),o($Vy,[2,51]),o($Vy,[2,52],{59:[1,93]}),o([5,17,18,21,22,23,24,26,27,28,29,30,31,32,34,35,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,54,55,56,59,61,63,65,67,69,71,72,74,75,76,77,79,80,82,83,85,86,87,88,90,91,92,93,97,98,100,102,103,107,110,111],$Vz,{19:[1,94]}),{18:$VA,99:95},{18:$VA,99:97,104:[1,98],105:[1,99],106:[1,100]},{18:$VA,99:101},o($Vy,[2,114]),o($VB,[2,54],{61:$VC}),{18:$V1,19:$V2,25:104,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,109:103,110:$Vm},o($VD,[2,56],{63:$VE}),o($VF,[2,58],{65:$VG}),o($VH,[2,60],{67:$VI}),o($VJ,[2,62],{69:$VK,71:$VL}),o($VM,[2,65],{72:$VN,74:$VO,75:$VP,76:$VQ}),o($VR,[2,70],{77:$VS,79:$VT}),o($VU,[2,73],{80:$VV,82:$VW}),o($VX,[2,76],{83:$VY,85:$VZ,86:$V_,87:$V$}),o($V01,[2,81],{88:$V11}),o($V21,[2,83]),{18:$VA,37:123,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$VA,37:124,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,80:$Vb,82:$Vc,89:125,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,80:$Vb,82:$Vc,89:127,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,80:$Vb,82:$Vc,89:128,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,80:$Vb,82:$Vc,89:129,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},o($V21,[2,90]),o($V21,[2,93]),o($V21,[2,94]),o($V21,[2,96]),o($V21,[2,97]),{18:$V1,19:$V2,25:130,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{1:[2,1]},o($Vn,[2,2]),{19:[1,131]},{19:[1,132]},{18:$V1,19:$V2,25:133,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,25:134,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,25:135,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{29:[1,136]},o($Vo,[2,26],{28:[1,137]}),{6:61,7:4,8:5,9:6,10:7,11:8,12:9,13:10,14:11,15:12,16:13,17:$V0,18:$V1,19:$V2,22:$V3,24:$V4,25:22,27:$V5,29:$V6,30:$V7,31:$V8,32:$V9,34:$Va,35:[1,138],36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},o($Vo,[2,30]),o($Vo,[2,28],{28:[1,139]}),{18:$VA,37:140,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$VA,37:141,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,36:142,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:143,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:144,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:145,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:146,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:147,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:148,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:149,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:150,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:151,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:152,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:153,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:154,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:155,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},o($V21,[2,91]),o($V21,[2,92]),{18:$V1,19:$V2,36:156,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$VA,99:157},o($V31,[2,108]),{18:$V1,19:$V2,37:126,60:158,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,21:[1,160],25:104,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,109:159,110:$Vm},o($Vx,[2,102],{108:92,110:$Vm}),o($V31,$Vz),o($Vx,[2,103],{108:92,110:$Vm}),{18:$VA,99:161},{104:[1,162]},{18:$VA,99:163},o($Vx,[2,107],{108:92,110:$Vm}),{18:$V1,19:$V2,37:126,62:164,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{23:$V41,111:[1,165]},o($V51,[2,113]),{18:$V1,19:$V2,37:126,64:167,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,66:168,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,68:169,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,70:170,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,70:171,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,73:172,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,73:173,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,73:174,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,73:175,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,78:176,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,78:177,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,80:$Vb,81:178,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,80:$Vb,81:179,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,80:$Vb,82:$Vc,84:180,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,80:$Vb,82:$Vc,84:181,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,80:$Vb,82:$Vc,84:182,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,80:$Vb,82:$Vc,84:183,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},{18:$V1,19:$V2,37:126,80:$Vb,82:$Vc,89:184,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl},o($V21,[2,84]),o($V21,[2,85]),o($V21,[2,86]),o($Vs,$Vt,{90:$Vu,91:$Vv}),o($V21,[2,87]),o($V21,[2,88]),o($V21,[2,89]),{21:[1,185]},{18:$V61,20:186,21:[1,187]},{18:$V61,20:189,21:[1,190]},{21:[1,191]},{28:[1,192]},{21:[1,193]},{19:[1,194]},o($Vo,[2,25]),o($Vo,[2,29]),o($Vo,[2,27]),o($Vw,[2,45]),o($Vw,[2,47]),{50:$Vp,52:$Vq,55:$Vr,56:[1,195]},o($V71,[2,33],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,34],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,35],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,36],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,37],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,38],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,39],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,40],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,41],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,42],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,43],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,44],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,46],{50:$Vp,52:$Vq,55:$Vr}),o($V71,[2,48],{50:$Vp,52:$Vq,55:$Vr}),o($Vx,[2,99],{108:92,110:$Vm}),o($VB,[2,53],{61:$VC}),{21:[1,196],23:$V41},o($V21,[2,111]),o($Vx,[2,104],{108:92,110:$Vm}),{18:$VA,99:197},o($Vx,[2,106],{108:92,110:$Vm}),o($VD,[2,55],{63:$VE}),o($V31,[2,115]),{18:$V1,19:$V2,25:198,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},o($VF,[2,57],{65:$VG}),o($VH,[2,59],{67:$VI}),o($VJ,[2,61],{69:$VK,71:$VL}),o($VM,[2,63],{72:$VN,74:$VO,75:$VP,76:$VQ}),o($VM,[2,64],{72:$VN,74:$VO,75:$VP,76:$VQ}),o($VR,[2,66],{77:$VS,79:$VT}),o($VR,[2,67],{77:$VS,79:$VT}),o($VR,[2,68],{77:$VS,79:$VT}),o($VR,[2,69],{77:$VS,79:$VT}),o($VU,[2,71],{80:$VV,82:$VW}),o($VU,[2,72],{80:$VV,82:$VW}),o($VX,[2,74],{83:$VY,85:$VZ,86:$V_,87:$V$}),o($VX,[2,75],{83:$VY,85:$VZ,86:$V_,87:$V$}),o($V01,[2,77],{88:$V11}),o($V01,[2,78],{88:$V11}),o($V01,[2,79],{88:$V11}),o($V01,[2,80],{88:$V11}),o($V21,[2,82]),o($V21,[2,98]),{21:[1,199],23:$V81},{14:201,34:$Va},o($V91,[2,19]),{21:[1,202],23:$V81},{14:203,34:$Va},{6:204,7:4,8:5,9:6,10:7,11:8,12:9,13:10,14:11,15:12,16:13,17:$V0,18:$V1,19:$V2,22:$V3,24:$V4,25:22,27:$V5,29:$V6,30:$V7,31:$V8,32:$V9,34:$Va,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,25:205,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{6:206,7:4,8:5,9:6,10:7,11:8,12:9,13:10,14:11,15:12,16:13,17:$V0,18:$V1,19:$V2,22:$V3,24:$V4,25:22,27:$V5,29:$V6,30:$V7,31:$V8,32:$V9,34:$Va,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,25:207,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,36:208,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},o($V21,[2,110]),o($Vx,[2,105],{108:92,110:$Vm}),o($V51,[2,112]),{14:209,34:$Va},{18:[1,210]},o($Vo,[2,15]),{14:211,34:$Va},o($Vo,[2,17]),o($Vn,[2,21],{26:[1,212]}),{28:[1,213]},o($Vo,[2,23]),{21:[1,214]},o($V71,[2,49],{50:$Vp,52:$Vq,55:$Vr}),o($Vo,[2,14]),o($V91,[2,18]),o($Vo,[2,16]),{6:215,7:4,8:5,9:6,10:7,11:8,12:9,13:10,14:11,15:12,16:13,17:$V0,18:$V1,19:$V2,22:$V3,24:$V4,25:22,27:$V5,29:$V6,30:$V7,31:$V8,32:$V9,34:$Va,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},{18:$V1,19:$V2,25:216,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},o($Vo,[2,24]),o($Vo,[2,20]),{21:[1,217]},{6:218,7:4,8:5,9:6,10:7,11:8,12:9,13:10,14:11,15:12,16:13,17:$V0,18:$V1,19:$V2,22:$V3,24:$V4,25:22,27:$V5,29:$V6,30:$V7,31:$V8,32:$V9,34:$Va,36:24,37:25,53:26,57:29,58:30,60:36,62:38,64:39,66:40,68:41,70:42,73:43,78:44,80:$Vb,81:45,82:$Vc,84:46,89:47,90:$Vd,91:$Ve,92:$Vf,93:$Vg,94:54,95:55,96:56,97:$Vh,98:$Vi,99:27,101:28,102:$Vj,103:$Vk,107:$Vl,108:35,110:$Vm},o($Vo,[2,22])],
  531. defaultActions: {60:[2,1]},
  532. parseError: function parseError (str, hash) {
  533. if (hash.recoverable) {
  534. this.trace(str);
  535. } else {
  536. var error = new Error(str);
  537. error.hash = hash;
  538. throw error;
  539. }
  540. },
  541. parse: function parse(input) {
  542. var self = this, stack = [0], tstack = [], vstack = [null], lstack = [], table = this.table, yytext = '', yylineno = 0, yyleng = 0, recovering = 0, TERROR = 2, EOF = 1;
  543. var args = lstack.slice.call(arguments, 1);
  544. var lexer = Object.create(this.lexer);
  545. var sharedState = { yy: {} };
  546. for (var k in this.yy) {
  547. if (Object.prototype.hasOwnProperty.call(this.yy, k)) {
  548. sharedState.yy[k] = this.yy[k];
  549. }
  550. }
  551. lexer.setInput(input, sharedState.yy);
  552. sharedState.yy.lexer = lexer;
  553. sharedState.yy.parser = this;
  554. if (typeof lexer.yylloc == 'undefined') {
  555. lexer.yylloc = {};
  556. }
  557. var yyloc = lexer.yylloc;
  558. lstack.push(yyloc);
  559. var ranges = lexer.options && lexer.options.ranges;
  560. if (typeof sharedState.yy.parseError === 'function') {
  561. this.parseError = sharedState.yy.parseError;
  562. } else {
  563. this.parseError = Object.getPrototypeOf(this).parseError;
  564. }
  565. function popStack(n) {
  566. stack.length = stack.length - 2 * n;
  567. vstack.length = vstack.length - n;
  568. lstack.length = lstack.length - n;
  569. }
  570. _token_stack:
  571. var lex = function () {
  572. var token;
  573. token = lexer.lex() || EOF;
  574. if (typeof token !== 'number') {
  575. token = self.symbols_[token] || token;
  576. }
  577. return token;
  578. };
  579. var symbol, preErrorSymbol, state, action, a, r, yyval = {}, p, len, newState, expected;
  580. while (true) {
  581. state = stack[stack.length - 1];
  582. if (this.defaultActions[state]) {
  583. action = this.defaultActions[state];
  584. } else {
  585. if (symbol === null || typeof symbol == 'undefined') {
  586. symbol = lex();
  587. }
  588. action = table[state] && table[state][symbol];
  589. }
  590. if (typeof action === 'undefined' || !action.length || !action[0]) {
  591. var errStr = '';
  592. expected = [];
  593. for (p in table[state]) {
  594. if (this.terminals_[p] && p > TERROR) {
  595. expected.push('\'' + this.terminals_[p] + '\'');
  596. }
  597. }
  598. if (lexer.showPosition) {
  599. errStr = 'Parse error on line ' + (yylineno + 1) + ':\n' + lexer.showPosition() + '\nExpecting ' + expected.join(', ') + ', got \'' + (this.terminals_[symbol] || symbol) + '\'';
  600. } else {
  601. errStr = 'Parse error on line ' + (yylineno + 1) + ': Unexpected ' + (symbol == EOF ? 'end of input' : '\'' + (this.terminals_[symbol] || symbol) + '\'');
  602. }
  603. this.parseError(errStr, {
  604. text: lexer.match,
  605. token: this.terminals_[symbol] || symbol,
  606. line: lexer.yylineno,
  607. loc: yyloc,
  608. expected: expected
  609. });
  610. }
  611. if (action[0] instanceof Array && action.length > 1) {
  612. throw new Error('Parse Error: multiple actions possible at state: ' + state + ', token: ' + symbol);
  613. }
  614. switch (action[0]) {
  615. case 1:
  616. stack.push(symbol);
  617. vstack.push(lexer.yytext);
  618. lstack.push(lexer.yylloc);
  619. stack.push(action[1]);
  620. symbol = null;
  621. if (!preErrorSymbol) {
  622. yyleng = lexer.yyleng;
  623. yytext = lexer.yytext;
  624. yylineno = lexer.yylineno;
  625. yyloc = lexer.yylloc;
  626. if (recovering > 0) {
  627. recovering--;
  628. }
  629. } else {
  630. symbol = preErrorSymbol;
  631. preErrorSymbol = null;
  632. }
  633. break;
  634. case 2:
  635. len = this.productions_[action[1]][1];
  636. yyval.$ = vstack[vstack.length - len];
  637. yyval._$ = {
  638. first_line: lstack[lstack.length - (len || 1)].first_line,
  639. last_line: lstack[lstack.length - 1].last_line,
  640. first_column: lstack[lstack.length - (len || 1)].first_column,
  641. last_column: lstack[lstack.length - 1].last_column
  642. };
  643. if (ranges) {
  644. yyval._$.range = [
  645. lstack[lstack.length - (len || 1)].range[0],
  646. lstack[lstack.length - 1].range[1]
  647. ];
  648. }
  649. r = this.performAction.apply(yyval, [
  650. yytext,
  651. yyleng,
  652. yylineno,
  653. sharedState.yy,
  654. action[1],
  655. vstack,
  656. lstack
  657. ].concat(args));
  658. if (typeof r !== 'undefined') {
  659. return r;
  660. }
  661. if (len) {
  662. stack = stack.slice(0, -1 * len * 2);
  663. vstack = vstack.slice(0, -1 * len);
  664. lstack = lstack.slice(0, -1 * len);
  665. }
  666. stack.push(this.productions_[action[1]][0]);
  667. vstack.push(yyval.$);
  668. lstack.push(yyval._$);
  669. newState = table[stack[stack.length - 2]][stack[stack.length - 1]];
  670. stack.push(newState);
  671. break;
  672. case 3:
  673. return true;
  674. }
  675. }
  676. return true;
  677. }};
  678. const bigInt = require('big-integer');
  679. const util = require('util');
  680. const __P__ = new bigInt("21888242871839275222246405745257275088548364400416034343698204186575808495617");
  681. const __MASK__ = new bigInt(2).pow(253).minus(1);
  682. function setLines(dst, first, last) {
  683. last = last || first;
  684. dst.first_line = first.first_line;
  685. dst.first_column = first.first_column;
  686. dst.last_line = last.last_line;
  687. dst.last_column = last.last_column;
  688. }
  689. /* generated by jison-lex 0.3.4 */
  690. var lexer = (function(){
  691. var lexer = ({
  692. EOF:1,
  693. parseError:function parseError(str, hash) {
  694. if (this.yy.parser) {
  695. this.yy.parser.parseError(str, hash);
  696. } else {
  697. throw new Error(str);
  698. }
  699. },
  700. // resets the lexer, sets new input
  701. setInput:function (input, yy) {
  702. this.yy = yy || this.yy || {};
  703. this._input = input;
  704. this._more = this._backtrack = this.done = false;
  705. this.yylineno = this.yyleng = 0;
  706. this.yytext = this.matched = this.match = '';
  707. this.conditionStack = ['INITIAL'];
  708. this.yylloc = {
  709. first_line: 1,
  710. first_column: 0,
  711. last_line: 1,
  712. last_column: 0
  713. };
  714. if (this.options.ranges) {
  715. this.yylloc.range = [0,0];
  716. }
  717. this.offset = 0;
  718. return this;
  719. },
  720. // consumes and returns one char from the input
  721. input:function () {
  722. var ch = this._input[0];
  723. this.yytext += ch;
  724. this.yyleng++;
  725. this.offset++;
  726. this.match += ch;
  727. this.matched += ch;
  728. var lines = ch.match(/(?:\r\n?|\n).*/g);
  729. if (lines) {
  730. this.yylineno++;
  731. this.yylloc.last_line++;
  732. } else {
  733. this.yylloc.last_column++;
  734. }
  735. if (this.options.ranges) {
  736. this.yylloc.range[1]++;
  737. }
  738. this._input = this._input.slice(1);
  739. return ch;
  740. },
  741. // unshifts one char (or a string) into the input
  742. unput:function (ch) {
  743. var len = ch.length;
  744. var lines = ch.split(/(?:\r\n?|\n)/g);
  745. this._input = ch + this._input;
  746. this.yytext = this.yytext.substr(0, this.yytext.length - len);
  747. //this.yyleng -= len;
  748. this.offset -= len;
  749. var oldLines = this.match.split(/(?:\r\n?|\n)/g);
  750. this.match = this.match.substr(0, this.match.length - 1);
  751. this.matched = this.matched.substr(0, this.matched.length - 1);
  752. if (lines.length - 1) {
  753. this.yylineno -= lines.length - 1;
  754. }
  755. var r = this.yylloc.range;
  756. this.yylloc = {
  757. first_line: this.yylloc.first_line,
  758. last_line: this.yylineno + 1,
  759. first_column: this.yylloc.first_column,
  760. last_column: lines ?
  761. (lines.length === oldLines.length ? this.yylloc.first_column : 0)
  762. + oldLines[oldLines.length - lines.length].length - lines[0].length :
  763. this.yylloc.first_column - len
  764. };
  765. if (this.options.ranges) {
  766. this.yylloc.range = [r[0], r[0] + this.yyleng - len];
  767. }
  768. this.yyleng = this.yytext.length;
  769. return this;
  770. },
  771. // When called from action, caches matched text and appends it on next action
  772. more:function () {
  773. this._more = true;
  774. return this;
  775. },
  776. // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
  777. reject:function () {
  778. if (this.options.backtrack_lexer) {
  779. this._backtrack = true;
  780. } else {
  781. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).\n' + this.showPosition(), {
  782. text: "",
  783. token: null,
  784. line: this.yylineno
  785. });
  786. }
  787. return this;
  788. },
  789. // retain first n characters of the match
  790. less:function (n) {
  791. this.unput(this.match.slice(n));
  792. },
  793. // displays already matched input, i.e. for error messages
  794. pastInput:function () {
  795. var past = this.matched.substr(0, this.matched.length - this.match.length);
  796. return (past.length > 20 ? '...':'') + past.substr(-20).replace(/\n/g, "");
  797. },
  798. // displays upcoming input, i.e. for error messages
  799. upcomingInput:function () {
  800. var next = this.match;
  801. if (next.length < 20) {
  802. next += this._input.substr(0, 20-next.length);
  803. }
  804. return (next.substr(0,20) + (next.length > 20 ? '...' : '')).replace(/\n/g, "");
  805. },
  806. // displays the character position where the lexing error occurred, i.e. for error messages
  807. showPosition:function () {
  808. var pre = this.pastInput();
  809. var c = new Array(pre.length + 1).join("-");
  810. return pre + this.upcomingInput() + "\n" + c + "^";
  811. },
  812. // test the lexed token: return FALSE when not a match, otherwise return token
  813. test_match:function(match, indexed_rule) {
  814. var token,
  815. lines,
  816. backup;
  817. if (this.options.backtrack_lexer) {
  818. // save context
  819. backup = {
  820. yylineno: this.yylineno,
  821. yylloc: {
  822. first_line: this.yylloc.first_line,
  823. last_line: this.last_line,
  824. first_column: this.yylloc.first_column,
  825. last_column: this.yylloc.last_column
  826. },
  827. yytext: this.yytext,
  828. match: this.match,
  829. matches: this.matches,
  830. matched: this.matched,
  831. yyleng: this.yyleng,
  832. offset: this.offset,
  833. _more: this._more,
  834. _input: this._input,
  835. yy: this.yy,
  836. conditionStack: this.conditionStack.slice(0),
  837. done: this.done
  838. };
  839. if (this.options.ranges) {
  840. backup.yylloc.range = this.yylloc.range.slice(0);
  841. }
  842. }
  843. lines = match[0].match(/(?:\r\n?|\n).*/g);
  844. if (lines) {
  845. this.yylineno += lines.length;
  846. }
  847. this.yylloc = {
  848. first_line: this.yylloc.last_line,
  849. last_line: this.yylineno + 1,
  850. first_column: this.yylloc.last_column,
  851. last_column: lines ?
  852. lines[lines.length - 1].length - lines[lines.length - 1].match(/\r?\n?/)[0].length :
  853. this.yylloc.last_column + match[0].length
  854. };
  855. this.yytext += match[0];
  856. this.match += match[0];
  857. this.matches = match;
  858. this.yyleng = this.yytext.length;
  859. if (this.options.ranges) {
  860. this.yylloc.range = [this.offset, this.offset += this.yyleng];
  861. }
  862. this._more = false;
  863. this._backtrack = false;
  864. this._input = this._input.slice(match[0].length);
  865. this.matched += match[0];
  866. token = this.performAction.call(this, this.yy, this, indexed_rule, this.conditionStack[this.conditionStack.length - 1]);
  867. if (this.done && this._input) {
  868. this.done = false;
  869. }
  870. if (token) {
  871. return token;
  872. } else if (this._backtrack) {
  873. // recover context
  874. for (var k in backup) {
  875. this[k] = backup[k];
  876. }
  877. return false; // rule action called reject() implying the next rule should be tested instead.
  878. }
  879. return false;
  880. },
  881. // return next match in input
  882. next:function () {
  883. if (this.done) {
  884. return this.EOF;
  885. }
  886. if (!this._input) {
  887. this.done = true;
  888. }
  889. var token,
  890. match,
  891. tempMatch,
  892. index;
  893. if (!this._more) {
  894. this.yytext = '';
  895. this.match = '';
  896. }
  897. var rules = this._currentRules();
  898. for (var i = 0; i < rules.length; i++) {
  899. tempMatch = this._input.match(this.rules[rules[i]]);
  900. if (tempMatch && (!match || tempMatch[0].length > match[0].length)) {
  901. match = tempMatch;
  902. index = i;
  903. if (this.options.backtrack_lexer) {
  904. token = this.test_match(tempMatch, rules[i]);
  905. if (token !== false) {
  906. return token;
  907. } else if (this._backtrack) {
  908. match = false;
  909. continue; // rule action called reject() implying a rule MISmatch.
  910. } else {
  911. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  912. return false;
  913. }
  914. } else if (!this.options.flex) {
  915. break;
  916. }
  917. }
  918. }
  919. if (match) {
  920. token = this.test_match(match, rules[index]);
  921. if (token !== false) {
  922. return token;
  923. }
  924. // else: this is a lexer rule which consumes input without producing a token (e.g. whitespace)
  925. return false;
  926. }
  927. if (this._input === "") {
  928. return this.EOF;
  929. } else {
  930. return this.parseError('Lexical error on line ' + (this.yylineno + 1) + '. Unrecognized text.\n' + this.showPosition(), {
  931. text: "",
  932. token: null,
  933. line: this.yylineno
  934. });
  935. }
  936. },
  937. // return next match that has a token
  938. lex:function lex () {
  939. var r = this.next();
  940. if (r) {
  941. return r;
  942. } else {
  943. return this.lex();
  944. }
  945. },
  946. // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
  947. begin:function begin (condition) {
  948. this.conditionStack.push(condition);
  949. },
  950. // pop the previously active lexer condition state off the condition stack
  951. popState:function popState () {
  952. var n = this.conditionStack.length - 1;
  953. if (n > 0) {
  954. return this.conditionStack.pop();
  955. } else {
  956. return this.conditionStack[0];
  957. }
  958. },
  959. // produce the lexer rule set which is active for the currently active lexer condition state
  960. _currentRules:function _currentRules () {
  961. if (this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1]) {
  962. return this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules;
  963. } else {
  964. return this.conditions["INITIAL"].rules;
  965. }
  966. },
  967. // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
  968. topState:function topState (n) {
  969. n = this.conditionStack.length - 1 - Math.abs(n || 0);
  970. if (n >= 0) {
  971. return this.conditionStack[n];
  972. } else {
  973. return "INITIAL";
  974. }
  975. },
  976. // alias for begin(condition)
  977. pushState:function pushState (condition) {
  978. this.begin(condition);
  979. },
  980. // return the number of states currently on the stack
  981. stateStackSize:function stateStackSize() {
  982. return this.conditionStack.length;
  983. },
  984. options: {},
  985. performAction: function anonymous(yy,yy_,$avoiding_name_collisions,YY_START) {
  986. var YYSTATE=YY_START;
  987. switch($avoiding_name_collisions) {
  988. case 0: /* skip whitespace */
  989. break;
  990. case 1: /* console.log("MULTILINE COMMENT: "+yy_.yytext); */
  991. break;
  992. case 2: /* console.log("SINGLE LINE COMMENT: "+yy_.yytext); */
  993. break;
  994. case 3: return 102;
  995. break;
  996. case 4: return 103;
  997. break;
  998. case 5: return 105;
  999. break;
  1000. case 6: return 104;
  1001. break;
  1002. case 7: return 106;
  1003. break;
  1004. case 8: return 'linearCombination';
  1005. break;
  1006. case 9: return 107;
  1007. break;
  1008. case 10: return 22;
  1009. break;
  1010. case 11: return 17;
  1011. break;
  1012. case 12: return 24;
  1013. break;
  1014. case 13: return 26;
  1015. break;
  1016. case 14: return 27;
  1017. break;
  1018. case 15: return 29;
  1019. break;
  1020. case 16: return 30;
  1021. break;
  1022. case 17: return 31;
  1023. break;
  1024. case 18: return 32;
  1025. break;
  1026. case 19: return 98;
  1027. break;
  1028. case 20: return 97;
  1029. break;
  1030. case 21: return 18;
  1031. break;
  1032. case 22: yy_.yytext = yy_.yytext.slice(1,-1); return 33;
  1033. break;
  1034. case 23: return 50;
  1035. break;
  1036. case 24: return 49;
  1037. break;
  1038. case 25: return 52;
  1039. break;
  1040. case 26: return 51;
  1041. break;
  1042. case 27: return 54;
  1043. break;
  1044. case 28: return 45;
  1045. break;
  1046. case 29: return 44;
  1047. break;
  1048. case 30: return 61;
  1049. break;
  1050. case 31: return 59;
  1051. break;
  1052. case 32: return 69;
  1053. break;
  1054. case 33: return 72;
  1055. break;
  1056. case 34: return 74;
  1057. break;
  1058. case 35: return 71;
  1059. break;
  1060. case 36: return 79;
  1061. break;
  1062. case 37: return 77;
  1063. break;
  1064. case 38: return 88;
  1065. break;
  1066. case 39: return 90;
  1067. break;
  1068. case 40: return 91;
  1069. break;
  1070. case 41: return 39;
  1071. break;
  1072. case 42: return 40;
  1073. break;
  1074. case 43: return 41;
  1075. break;
  1076. case 44: return 42;
  1077. break;
  1078. case 45: return 43;
  1079. break;
  1080. case 46: return 47;
  1081. break;
  1082. case 47: return 46;
  1083. break;
  1084. case 48: return 48;
  1085. break;
  1086. case 49: return 38;
  1087. break;
  1088. case 50: return 80;
  1089. break;
  1090. case 51: return 82;
  1091. break;
  1092. case 52: return 83;
  1093. break;
  1094. case 53: return 85;
  1095. break;
  1096. case 54: return 86;
  1097. break;
  1098. case 55: return 87;
  1099. break;
  1100. case 56: return 65;
  1101. break;
  1102. case 57: return 67;
  1103. break;
  1104. case 58: return 63;
  1105. break;
  1106. case 59: return 92;
  1107. break;
  1108. case 60: return 75;
  1109. break;
  1110. case 61: return 76;
  1111. break;
  1112. case 62: return 92;
  1113. break;
  1114. case 63: return 55;
  1115. break;
  1116. case 64: return 56;
  1117. break;
  1118. case 65: return 19;
  1119. break;
  1120. case 66: return 21;
  1121. break;
  1122. case 67: return 110;
  1123. break;
  1124. case 68: return 111;
  1125. break;
  1126. case 69: return 34;
  1127. break;
  1128. case 70: return 35;
  1129. break;
  1130. case 71: return 28;
  1131. break;
  1132. case 72: return 23;
  1133. break;
  1134. case 73: return 100;
  1135. break;
  1136. case 74: return 5;
  1137. break;
  1138. case 75: console.log("INVALID: " + yy_.yytext); return 'INVALID'
  1139. break;
  1140. }
  1141. },
  1142. rules: [/^(?:\s+)/,/^(?:\/\*([^*]|[\r\n]|(\*+([^*\/]|[\r\n])))*\*+\/)/,/^(?:\/\/.*)/,/^(?:var\b)/,/^(?:signal\b)/,/^(?:private\b)/,/^(?:input\b)/,/^(?:output\b)/,/^(?:linearCombination\b)/,/^(?:component\b)/,/^(?:template\b)/,/^(?:function\b)/,/^(?:if\b)/,/^(?:else\b)/,/^(?:for\b)/,/^(?:while\b)/,/^(?:do\b)/,/^(?:return\b)/,/^(?:include\b)/,/^(?:0x[0-9A-Fa-f]*)/,/^(?:[0-9]+)/,/^(?:[a-zA-Z][a-zA-Z$_0-9]*)/,/^(?:"[^"]+")/,/^(?:==>)/,/^(?:<==)/,/^(?:-->)/,/^(?:<--)/,/^(?:===)/,/^(?:>>=)/,/^(?:<<=)/,/^(?:&&)/,/^(?:\|\|)/,/^(?:==)/,/^(?:<=)/,/^(?:>=)/,/^(?:!=)/,/^(?:>>)/,/^(?:<<)/,/^(?:\*\*)/,/^(?:\+\+)/,/^(?:--)/,/^(?:\+=)/,/^(?:-=)/,/^(?:\*=)/,/^(?:\/=)/,/^(?:%=)/,/^(?:\|=)/,/^(?:&=)/,/^(?:\^=)/,/^(?:=)/,/^(?:\+)/,/^(?:-)/,/^(?:\*)/,/^(?:\/)/,/^(?:\\)/,/^(?:%)/,/^(?:\^)/,/^(?:&)/,/^(?:\|)/,/^(?:!)/,/^(?:<)/,/^(?:>)/,/^(?:!)/,/^(?:\?)/,/^(?::)/,/^(?:\()/,/^(?:\))/,/^(?:\[)/,/^(?:\])/,/^(?:\{)/,/^(?:\})/,/^(?:;)/,/^(?:,)/,/^(?:\.)/,/^(?:$)/,/^(?:.)/],
  1143. conditions: {"INITIAL":{"rules":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75],"inclusive":true}}
  1144. });
  1145. return lexer;
  1146. })();
  1147. parser.lexer = lexer;
  1148. function Parser () {
  1149. this.yy = {};
  1150. }
  1151. Parser.prototype = parser;parser.Parser = Parser;
  1152. return new Parser;
  1153. })();
  1154. if (typeof require !== 'undefined' && typeof exports !== 'undefined') {
  1155. exports.parser = jaz;
  1156. exports.Parser = jaz.Parser;
  1157. exports.parse = function () { return jaz.parse.apply(jaz, arguments); };
  1158. exports.main = function commonjsMain (args) {
  1159. if (!args[1]) {
  1160. console.log('Usage: '+args[0]+' FILE');
  1161. process.exit(1);
  1162. }
  1163. var source = require('fs').readFileSync(require('path').normalize(args[1]), "utf8");
  1164. return exports.parser.parse(source);
  1165. };
  1166. if (typeof module !== 'undefined' && require.main === module) {
  1167. exports.main(process.argv.slice(1));
  1168. }
  1169. }