Token
Token
Kind: global class
- Token
- new Token(value, start, end, name, type)
- .value :
V
- .start :
number
- .end :
number
- .name :
string
- .type :
T
- .equals(other) ⇒
boolean
- .hash() ⇒
number
new Token(value, start, end, name, type)
Param | Type |
---|---|
value | V |
start | number |
end | number |
name | string |
type | T |
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
Param | Type |
---|---|
other | Token |
token.hash() ⇒ number
Kind: instance method of Token