parent
f536261639
commit
e8a8770eee
@ -46,8 +46,8 @@ export class Token {
|
|||||||
|
|
||||||
isString(): boolean { return this.type == TokenType.String; }
|
isString(): boolean { return this.type == TokenType.String; }
|
||||||
|
|
||||||
isOperator(operater: string): boolean {
|
isOperator(operator: string): boolean {
|
||||||
return this.type == TokenType.Operator && this.strValue == operater;
|
return this.type == TokenType.Operator && this.strValue == operator;
|
||||||
}
|
}
|
||||||
|
|
||||||
isIdentifier(): boolean { return this.type == TokenType.Identifier; }
|
isIdentifier(): boolean { return this.type == TokenType.Identifier; }
|
||||||
|
Loading…
x
Reference in New Issue
Block a user