antlr.debug
public class LLkDebuggingParser extends LLkParser implements DebuggingParser
| Field Summary | |
|---|---|
| protected ParserEventSupport | parserEventSupport |
| protected String[] | ruleNames |
| protected String[] | semPredNames |
| Constructor Summary | |
|---|---|
| LLkDebuggingParser(int k_) | |
| LLkDebuggingParser(ParserSharedInputState state, int k_) | |
| LLkDebuggingParser(TokenBuffer tokenBuf, int k_) | |
| LLkDebuggingParser(TokenStream lexer, int k_) | |
| Method Summary | |
|---|---|
| void | addMessageListener(MessageListener l) |
| void | addParserListener(ParserListener l) |
| void | addParserMatchListener(ParserMatchListener l) |
| void | addParserTokenListener(ParserTokenListener l) |
| void | addSemanticPredicateListener(SemanticPredicateListener l) |
| void | addSyntacticPredicateListener(SyntacticPredicateListener l) |
| void | addTraceListener(TraceListener l) |
| void | consume() Get another token object from the token stream |
| protected void | fireEnterRule(int num, int data) |
| protected void | fireExitRule(int num, int data) |
| protected boolean | fireSemanticPredicateEvaluated(int type, int num, boolean condition) |
| protected void | fireSyntacticPredicateFailed() |
| protected void | fireSyntacticPredicateStarted() |
| protected void | fireSyntacticPredicateSucceeded() |
| String | getRuleName(int num) |
| String | getSemPredName(int num) |
| void | goToSleep() |
| boolean | isDebugMode() |
| boolean | isGuessing() |
| int | LA(int i) Return the token type of the ith token of lookahead where i=1
is the current token being examined by the parser (i.e., it
has not been matched yet). |
| void | match(int t) Make sure current lookahead symbol matches token type t.
|
| void | match(BitSet b) Make sure current lookahead symbol matches the given set
Throw an exception upon mismatch, which is catch by either the
error handler or by the syntactic predicate. |
| void | matchNot(int t) |
| void | removeMessageListener(MessageListener l) |
| void | removeParserListener(ParserListener l) |
| void | removeParserMatchListener(ParserMatchListener l) |
| void | removeParserTokenListener(ParserTokenListener l) |
| void | removeSemanticPredicateListener(SemanticPredicateListener l) |
| void | removeSyntacticPredicateListener(SyntacticPredicateListener l) |
| void | removeTraceListener(TraceListener l) |
| void | reportError(RecognitionException ex) Parser error-reporting function can be overridden in subclass |
| void | reportError(String s) Parser error-reporting function can be overridden in subclass |
| void | reportWarning(String s) Parser warning-reporting function can be overridden in subclass |
| void | setDebugMode(boolean value) |
| void | setupDebugging(TokenBuffer tokenBuf) |
| void | setupDebugging(TokenStream lexer) |
| protected void | setupDebugging(TokenStream lexer, TokenBuffer tokenBuf) User can override to do their own debugging |
| void | wakeUp() |