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.

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