Advertisement
Guest User

Untitled

a guest
Apr 21st, 2015
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. //var isVar = vars[x[i]];
  2.         //if (isVar != undefined) {
  3.         //    temp.push(variable(x[i]));
  4.         //}
  5.         //else if (x[i] >= '0' && x[i] <= '9') {
  6.         //    temp.push(cnst(parseInt(x.substr(i))));
  7.         //    while (x[i] != ' ' && i != x.length) {
  8.         //        i++;
  9.         //    }
  10.         //}
  11.         //else if (x[i] == '*') {
  12.         //    if (i != x.length - 1 && x[i + 1] == '*') {
  13.         //        pushBi(power);
  14.         //        i += 1;
  15.         //        continue;
  16.         //    }
  17.         //    pushBi(multiply);
  18.         //}
  19.         //else if (x[i] == '/') {
  20.         //    pushBi(divide);
  21.         //}
  22.         //else if (x[i] == '+') {
  23.         //    pushBi(add);
  24.         //}
  25.         //else if (x[i] == '-') {
  26.         //    if (i != x.length - 1 && x[i + 1] >= '0' && x[i + 1] <= '9') {
  27.         //        temp.push(cnst(parseInt(x.substr(i))));
  28.         //        while (x[i] != ' ' && i != x.length) {
  29.         //            i++;
  30.         //        }
  31.         //        continue;
  32.         //    }
  33.         //    pushBi(subtract);
  34.         //}
  35.         //else if (x[i] == 'a') {
  36.         //    pushUn(abs);
  37.         //    i += 3;
  38.         //}
  39.         //else if (x[i] == 'l') {
  40.         //    pushUn(log);
  41.         //    i += 3;
  42.         //}
  43.         //else if (x[i] == '%') {
  44.         //    pushBi(mod);
  45.         //}
  46.         //else if (x[i] == 'n') {
  47.         //    pushUn(negate);
  48.         //    i += 6;
  49.         //}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement