Class IsIdentifierPart

java.lang.Object
org.ek9lang.compiler.support.IsIdentifierPart
All Implemented Interfaces:
IntPredicate

public final class IsIdentifierPart extends Object implements IntPredicate
True when a character can continue an EK9 identifier: an ASCII letter, a digit or _ - the lexer's LetterOrDigit : [a-zA-Z0-9_] (EK9LexerRules.g4). 🛑 Never Character.isJavaIdentifierPart: Java admits $, which in EK9 is the string operator (see IsIdentifier).
  • Constructor Details

    • IsIdentifierPart

      public IsIdentifierPart()
  • Method Details

    • test

      public boolean test(int c)
      Specified by:
      test in interface IntPredicate