Interface ChunkerMixin

All Known Implementing Classes:
Chunker

public interface ChunkerMixin
Used to extract some reusable token-checking logic from the generated parser. This will help rescue some somewhat complex code from our language-definition .jtt file, and keep it here, where it can be more easily understood / edited.
  • Field Details

    • EQUAL_COMMA_OR_DASH

      static final char[] EQUAL_COMMA_OR_DASH
    • COMMA_OR_DASH_OR_DOT

      static final char[] COMMA_OR_DASH_OR_DOT
    • ANY_EXPR

      static final char[] ANY_EXPR
    • ALLOW_TYPE_PARAMS

      static final Set<Character> ALLOW_TYPE_PARAMS
    • ALLOW_TYPE_OR_DOT

      static final Set<Character> ALLOW_TYPE_OR_DOT
    • ALLOW_EQUALS

      static final Set<Character> ALLOW_EQUALS
    • ALLOW_ASSIGN

      static final Set<Character> ALLOW_ASSIGN
    • ALLOW_COLON

      static final Set<Character> ALLOW_COLON
    • ALLOW_EQUAL_COMMA_OR_DASH

      static final Set<Character> ALLOW_EQUAL_COMMA_OR_DASH
    • ALLOW_COMMA_OR_DASH_OR_DOT

      static final Set<Character> ALLOW_COMMA_OR_DASH_OR_DOT
    • ALLOW_PAREN

      static final Set<Character> ALLOW_PAREN
    • ALLOW_ANY

      static final Set<Character> ALLOW_ANY
  • Method Details

    • set

      static Set<Character> set(char... cs)
    • report

      default void report(int code, Throwable e)
    • next

      char next() throws IOException
      Throws:
      IOException
    • curToken

      Token curToken()
    • isLookingAhead

      boolean isLookingAhead()
    • peek

      default ChunkerMixin.PeekStream peek()
    • isTypedAssign

      default boolean isTypedAssign()
    • isAssign

      default boolean isAssign()
    • isScope

      default boolean isScope()
    • isBinExprAcrossNewline

      default boolean isBinExprAcrossNewline()
    • isPythonAnnotated

      default boolean isPythonAnnotated()
    • isTypedInvoke

      default boolean isTypedInvoke(boolean ctor)
    • isClassDecl

      default boolean isClassDecl()
    • isParamList

      default boolean isParamList()
    • back

      void back(int amt, int begin)
    • token

      Token token()
    • eatJunk

      default Token eatJunk()