public isBuiltin(word as String) as Boolean
Checks in $O(1)$ whether word is a registered built-in function of this language.
| Parameter | Description |
|---|---|
word | Token text to test. |
true if word is a built-in function.
import klyn.code
p = LanguageProfile("klyn", "Klyn").withBuiltins(["print"])
assert p.isBuiltin("print")