klyn.code.LanguageProfile.withConstants
method
public withConstants(words as ArrayList<String>) as LanguageProfile
Description

Registers language constant literals (e.g. true, false, null, None, nullptr).

Parameters
ParameterDescription
wordsList of constant identifiers.
Returns

this for fluent chaining.

Example
import klyn.code

p = LanguageProfile("python", "Python").withConstants(["True", "False", "None"])
assert p.isConstant("None")