export default class Token {
  type
  value
  startPos

  constructor (type, value, startPos) {
    this.type = type
    this.value = value
    this.startPos = startPos
  }

  toString () {
    return this.type.toString() + this.value
  }

  getType () {
    return this.type
  }

  getValue () {
    return this.value
  }

  getStartPos () {
    return this.startPos
  }
}
