Skip to main content

Token

Token

Kind: global class

new Token(value, start, end, name, type)

ParamType
valueV
startnumber
endnumber
namestring
typeT

token.value : V

Kind: instance property of Token
Read only: true

token.start : number

Starting position in the input

Kind: instance property of Token
Read only: true

token.end : number

End position in the input

Kind: instance property of Token
Read only: true

token.name : string

Kind: instance property of Token
Read only: true

token.type : T

Token type

Kind: instance property of Token
Read only: true

token.equals(other) ⇒ boolean

Kind: instance method of Token

ParamType
otherToken

token.hash() ⇒ number

Kind: instance method of Token