Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. value() {
  2.         if ([TT.HEXADECIM].includes(this.token.name)) {
  3.             this.hexcolor();
  4.         } else if ([TT.STRING, TT.ASCII].includes(this.token.name)) {
  5.             // func albo color
  6.             this.string();
  7.             // byc moze funkcja
  8.             if ([TT.LP].includes(this.token.name)) {
  9.                 this.func();
  10.             }
  11.         } else if ([TT.NUMBER].includes(this.token.name)) {
  12.             this.takeToken(TT.NUMBER);
  13.             this.unit();
  14.         } else if ([TT.AT].includes(this.token.name)) {
  15.             this.varName();
  16.         }
  17.     };
  18.  
  19.     func() {
  20.         this.takeToken(TT.LP);
  21.         this.args();
  22.         this.takeToken(TT.RP);
  23.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement