Token

constructor()(source)

Builds a token with kind 0 and no image.


constructor(kind: Int)(source)

Builds a token of the given kind with no image.

Parameters

kind

the token kind, as declared in ExpConstants


constructor(kind: Int, image: String)(source)

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