public class ANTLRTokdefParser extends LLkParser implements ANTLRTokdefParserTokenTypes
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
_tokenNames |
static BitSet |
_tokenSet_0 |
static BitSet |
_tokenSet_1 |
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
ASSIGN, DIGIT, EOF, ESC, ID, INT, LPAREN, ML_COMMENT, NULL_TREE_LOOKAHEAD, RPAREN, SL_COMMENT, STRING, WS, XDIGIT
Modifier | Constructor and Description |
---|---|
|
ANTLRTokdefParser(ParserSharedInputState state) |
|
ANTLRTokdefParser(TokenBuffer tokenBuf) |
protected |
ANTLRTokdefParser(TokenBuffer tokenBuf,
int k) |
|
ANTLRTokdefParser(TokenStream lexer) |
protected |
ANTLRTokdefParser(TokenStream lexer,
int k) |
Modifier and Type | Method and Description |
---|---|
void |
file(ImportVocabTokenManager tm) |
protected Tool |
getTool() |
void |
line(ImportVocabTokenManager tm) |
void |
reportError(RecognitionException e)
Delegates the error message to the tool if any was registered via
#initTool(antlr.Tool) |
void |
reportError(java.lang.String s)
Delegates the error message to the tool if any was registered via
#initTool(antlr.Tool) |
void |
reportWarning(java.lang.String s)
Delegates the warning message to the tool if any was registered via
#initTool(antlr.Tool) |
void |
setTool(Tool tool)
In order to make it so existing subclasses don't break, we won't require
that the antlr.Tool instance be passed as a constructor element.
|
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
public static final java.lang.String[] _tokenNames
public static final BitSet _tokenSet_0
public static final BitSet _tokenSet_1
protected ANTLRTokdefParser(TokenBuffer tokenBuf, int k)
public ANTLRTokdefParser(TokenBuffer tokenBuf)
protected ANTLRTokdefParser(TokenStream lexer, int k)
public ANTLRTokdefParser(TokenStream lexer)
public ANTLRTokdefParser(ParserSharedInputState state)
public void setTool(Tool tool)
#initTool(antlr.Tool)
java.lang.IllegalStateException
- if a tool has already been registeredprotected Tool getTool()
public void reportError(java.lang.String s)
#initTool(antlr.Tool)
reportError
in class Parser
public void reportError(RecognitionException e)
#initTool(antlr.Tool)
reportError
in class Parser
public void reportWarning(java.lang.String s)
#initTool(antlr.Tool)
reportWarning
in class Parser
public final void file(ImportVocabTokenManager tm) throws RecognitionException, TokenStreamException
public final void line(ImportVocabTokenManager tm) throws RecognitionException, TokenStreamException