Token

constructor()

Builds a token with kind 0 and no image.


constructor(kind: Int)

Builds a token of the given kind with no image.

Parameters

kind

the token kind, as declared in ExpConstants


constructor(kind: Int, image: String)

Builds a token of the given kind and image.

Parameters

kind

the token kind, as declared in ExpConstants

image

the source text matched by this token