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
Modifier and TypeInterfaceDescriptionstatic interface
static class
A stream specialized for "peek ahead" during semantic LOOKAHEAD. -
Field Summary
Modifier and TypeFieldDescriptionstatic final char[]
static final char[]
static final char[]
-
Method Summary
Modifier and TypeMethodDescriptionvoid
back
(int amt, int begin) curToken()
default Token
eatJunk()
default boolean
isAssign()
default boolean
default boolean
boolean
default boolean
default boolean
default boolean
isScope()
default boolean
default boolean
isTypedInvoke
(boolean ctor) char
next()
default ChunkerMixin.PeekStream
peek()
default void
set
(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
-