Package net.hollowcube.mql.parser
Class MqlLexer
java.lang.Object
net.hollowcube.mql.parser.MqlLexer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexpect(net.hollowcube.mql.parser.MqlToken.Type type) @Nullable net.hollowcube.mql.parser.MqlTokennext()Returns the next token in the input, or null if the end of file was reached.@Nullable net.hollowcube.mql.parser.MqlTokenpeek()Returns the next token without stepping to the next token in the input, or null if the end of file was reached.@NotNull Stringspan(@NotNull net.hollowcube.mql.parser.MqlToken token)
-
Constructor Details
-
MqlLexer
-
-
Method Details
-
next
@Nullable public @Nullable net.hollowcube.mql.parser.MqlToken next()Returns the next token in the input, or null if the end of file was reached.- Throws:
MqlParseError- if there is an unexpected token.
-
peek
@Nullable public @Nullable net.hollowcube.mql.parser.MqlToken peek()Returns the next token without stepping to the next token in the input, or null if the end of file was reached.- Throws:
MqlParseError- if there is an unexpected token.
-
expect
public void expect(@NotNull net.hollowcube.mql.parser.MqlToken.Type type) -
span
-