toString

open override fun toString(): String

Returns the string representation of the current stream token and the line number it occurs on.

The precise string returned is unspecified, although the following example can be considered typical:

Token['a'], line 10
*

Return

a string representation of the token

See also