public withConstants(words as ArrayList<String>) as LanguageProfile
Registers language constant literals (e.g. true, false, null, None, nullptr).
| Parameter | Description |
|---|---|
words | List of constant identifiers. |
this for fluent chaining.
import klyn.code
p = LanguageProfile("python", "Python").withConstants(["True", "False", "None"])
assert p.isConstant("None")