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

Returns true when this token is a literal.

Returns

true if this.kind.isLiteral().

Example
import klyn.code

tok = Token(TokenKind.STRING, "\"ok\"")
assert tok.isLiteral()