klyn.code.LanguageProfile.isConstant
method
public isConstant(word as String) as Boolean
Description

Checks in $O(1)$ whether word is a registered constant literal (true, false, null, etc.).

Parameters
ParameterDescription
wordToken text to test.
Returns

true if word is a constant literal.

Example
import klyn.code

p = LanguageProfile("klyn", "Klyn")
assert p.isConstant("true")