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

Checks in $O(1)$ whether word is a registered built-in type of this language.

Parameters
ParameterDescription
wordToken text to test.
Returns

true if word is a built-in type.

Example
import klyn.code

p = LanguageProfile("klyn", "Klyn").withTypes(["Int", "String"])
assert p.isType("Int")