Package io.deephaven.lang.generated
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.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic classA stream specialized for "peek ahead" during semantic LOOKAHEAD. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final char[]static final char[]static final char[] -
Method Summary
Modifier and TypeMethodDescriptionvoidback(int amt, int begin) curToken()default TokeneatJunk()default booleanisAssign()default booleandefault booleanbooleandefault booleandefault booleandefault booleanisScope()default booleandefault booleanisTypedInvoke(boolean ctor) charnext()default ChunkerMixin.PeekStreampeek()default voidset(char... cs) token()
-
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
-
ALLOW_TYPE_OR_DOT
-
ALLOW_EQUALS
-
ALLOW_ASSIGN
-
ALLOW_COLON
-
ALLOW_EQUAL_COMMA_OR_DASH
-
ALLOW_COMMA_OR_DASH_OR_DOT
-
ALLOW_PAREN
-
ALLOW_ANY
-
-
Method Details
-
set
-
report
-
next
- Throws:
IOException
-
curToken
Token curToken() -
isLookingAhead
boolean isLookingAhead() -
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
-