public interface TokenFactory
| Modifier and Type | Method and Description |
|---|---|
Token |
create(int type,
String text)
Generically useful
|
Token |
create(Tuple2<? extends TokenSource,CharStream> source,
int type,
String text,
int channel,
int start,
int stop,
int line,
int charPositionInLine)
This is the method used to create tokens in the lexer and in the
error handling strategy.
|
@NotNull Token create(@NotNull Tuple2<? extends TokenSource,CharStream> source, int type, String text, int channel, int start, int stop, int line, int charPositionInLine)
Copyright © 1992–2024 Daniel Sun. All rights reserved.