klyn.code.TokenKind.isLiteral
method
public isLiteral() as Boolean
Description

Returns true when this token belongs to a string, character, regex, numeric, or constant literal.

Returns

true for literal token kinds.

Example
import klyn.code

assert TokenKind.STRING.isLiteral()
assert TokenKind.NUMBER.isLiteral()