public interface TokenFactory<Symbol extends Token>
Modifier and Type | Method and Description |
---|---|
Symbol |
create(int type,
String text)
Generically useful
|
Symbol |
create(Pair<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.
|
Symbol create(Pair<TokenSource,CharStream> source, int type, String text, int channel, int start, int stop, int line, int charPositionInLine)
Copyright © 1992-2013 ANTLR. All Rights Reserved.