import type TokenType from '../enums/TokenType' export default class Token { private type: TokenType private value: any private startPos: number constructor(type: TokenType, value: any, startPos: number) { this.type = type this.value = value this.startPos = startPos } public toString(): string { return this.type.toString() + this.value } public getType(): TokenType { return this.type } public getValue(): any { return this.value } public getStartPos(): number { return this.startPos } }