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

Registers language keywords in $O(1)$ lookup tables.

Parameters
ParameterDescription
wordsList of keywords.
Returns

this for fluent chaining.

Example
import klyn.code

p = LanguageProfile("java", "Java").withKeywords(["class", "public", "return"])
assert p.isKeyword("class")