Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- value() {
- if ([TT.HEXADECIM].includes(this.token.name)) {
- this.hexcolor();
- } else if ([TT.STRING, TT.ASCII].includes(this.token.name)) {
- // func albo color
- this.string();
- // byc moze funkcja
- if ([TT.LP].includes(this.token.name)) {
- this.func();
- }
- } else if ([TT.NUMBER].includes(this.token.name)) {
- this.takeToken(TT.NUMBER);
- this.unit();
- } else if ([TT.AT].includes(this.token.name)) {
- this.varName();
- }
- };
- func() {
- this.takeToken(TT.LP);
- this.args();
- this.takeToken(TT.RP);
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement