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