JSFiddle - React, Tailwind, and code Playground
by XTREME104
JavaScript
/* Jison generated parser */
var parser = (function(){
var parser = {trace: function trace() { },
yy: {},
symbols_: {"error":2,"expressions":3,"e":4,"EOF":5,"=":6,"+":7,"-":8,"*":9,"/":10,"&":11,"|":12,"^":13,"~":14,"%":15,"<<":16,">>":17,"(":18,")":19,"IDENT":20,"NUMBER":21,"E":22,"PI":23,"$accept":0,"$end":1},
terminals_: {2:"error",5:"EOF",6:"=",7:"+",8:"-",9:"*",10:"/",11:"&",12:"|",13:"^",14:"~",15:"%",16:"<<",17:">>",18:"(",19:")",20:"IDENT",21:"NUMBER",22:"E",23:"PI"},
productions_: [0,[3,2],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,3],[4,2],[4,3],[4,3],[4,3],[4,2],[4,3],[4,1],[4,1],[4,1],[4,1]],
performAction: function anonymous(yytext,yyleng,yylineno,yy,yystate,$$,_$) {
var $0 = $$.length - 1;
switch (yystate) {
case 1: typeof console !== 'undefined' ? console.log($$[$0-1]) : print($$[$0-1]);
return $$[$0-1];
break;
case 2:this.$ = $$[$0-2]=$$[$0];
break;
case 3:this.$ = $$[$0-2]+$$[$0];
break;
case 4:this.$ = $$[$0-2]-$$[$0];
break;
case 5:this.$ = $$[$0-2]*$$[$0];
break;
case 6:this.$ = $$[$0-2]/$$[$0];
break;
case 7:this.$ = $$[$0-2]&$$[$0];
break;
case 8:this.$ = $$[$0-2]|$$[$0];
break;
case 9:this.$ = $$[$0-2]^$$[$0];
break;
case 10:this.$ = ~$$[$0];
break;
case 11:this.$ = $$[$0-2]%$$[$0];
break;
case 12:this.$ = $$[$0-2]<<$$[$0];
break;
case 13:this.$ = $$[$0-2]>>$$[$0];
break;
case 14:this.$ = -$$[$0];
break;
case 15:this.$ = $$[$0-1];
break;
case 16:this.$ = null;
break;
case 17:this.$ = Number(yytext);
break;
case 18:this.$ = Math.E;
break;
case 19:this.$ = Math.PI;
break;
}
},
table:...