Class IsReservedWord

java.lang.Object
org.ek9lang.compiler.support.IsReservedWord
All Implemented Interfaces:
Predicate<String>

public final class IsReservedWord extends Object implements Predicate<String>
THE question "is this a keyword that CANNOT be used as a name?" - true only for one of the Ek9Keywords.WORD_KEYWORDS that fails to parse as word <- 1 in a minimal program. "Is a keyword" is not "cannot be a name": the grammar's identifier rule admits sort, type, ... Derived from the grammar, once per word; the answers are shared by every instance (the probe is a parse).
  • Constructor Details

    • IsReservedWord

      public IsReservedWord()
  • Method Details