antlr.debug.LLkDebuggingParser.LLkDebuggingParser | ( | int | k_ | ) |
antlr.debug.LLkDebuggingParser.LLkDebuggingParser | ( | ParserSharedInputState | state, | |
int | k_ | |||
) |
antlr.debug.LLkDebuggingParser.LLkDebuggingParser | ( | TokenBuffer | tokenBuf, | |
int | k_ | |||
) |
antlr.debug.LLkDebuggingParser.LLkDebuggingParser | ( | TokenStream | lexer, | |
int | k_ | |||
) |
void antlr.debug.LLkDebuggingParser.addMessageListener | ( | MessageListener | l | ) |
void antlr.debug.LLkDebuggingParser.addParserListener | ( | ParserListener | l | ) |
void antlr.debug.LLkDebuggingParser.addParserMatchListener | ( | ParserMatchListener | l | ) |
void antlr.debug.LLkDebuggingParser.addParserTokenListener | ( | ParserTokenListener | l | ) |
void antlr.debug.LLkDebuggingParser.addSemanticPredicateListener | ( | SemanticPredicateListener | l | ) |
void antlr.debug.LLkDebuggingParser.addSyntacticPredicateListener | ( | SyntacticPredicateListener | l | ) |
void antlr.debug.LLkDebuggingParser.addTraceListener | ( | TraceListener | l | ) |
void antlr.debug.LLkDebuggingParser.consume | ( | ) | throws TokenStreamException |
Get another token object from the token stream
References antlr.debug.ParserEventSupport.fireConsume(), antlr.debug.LLkDebuggingParser.LA(), and antlr.debug.LLkDebuggingParser.parserEventSupport.
void antlr.debug.LLkDebuggingParser.fireEnterRule | ( | int | num, | |
int | data | |||
) | [protected] |
void antlr.debug.LLkDebuggingParser.fireExitRule | ( | int | num, | |
int | data | |||
) | [protected] |
boolean antlr.debug.LLkDebuggingParser.fireSemanticPredicateEvaluated | ( | int | type, | |
int | num, | |||
boolean | condition | |||
) | [protected] |
void antlr.debug.LLkDebuggingParser.fireSyntacticPredicateFailed | ( | ) | [protected] |
void antlr.debug.LLkDebuggingParser.fireSyntacticPredicateStarted | ( | ) | [protected] |
void antlr.debug.LLkDebuggingParser.fireSyntacticPredicateSucceeded | ( | ) | [protected] |
String antlr.debug.LLkDebuggingParser.getRuleName | ( | int | num | ) |
Implements antlr.debug.DebuggingParser.
References antlr.debug.LLkDebuggingParser.ruleNames.
String antlr.debug.LLkDebuggingParser.getSemPredName | ( | int | num | ) |
Implements antlr.debug.DebuggingParser.
References antlr.debug.LLkDebuggingParser.semPredNames.
synchronized void antlr.debug.LLkDebuggingParser.goToSleep | ( | ) |
boolean antlr.debug.LLkDebuggingParser.isDebugMode | ( | ) |
Referenced by antlr.debug.LLkDebuggingParser.fireEnterRule(), antlr.debug.LLkDebuggingParser.fireExitRule(), antlr.debug.LLkDebuggingParser.fireSemanticPredicateEvaluated(), antlr.debug.LLkDebuggingParser.fireSyntacticPredicateFailed(), antlr.debug.LLkDebuggingParser.fireSyntacticPredicateStarted(), and antlr.debug.LLkDebuggingParser.fireSyntacticPredicateSucceeded().
boolean antlr.debug.LLkDebuggingParser.isGuessing | ( | ) |
References antlr.ParserSharedInputState.guessing, and antlr.Parser.inputState.
int antlr.debug.LLkDebuggingParser.LA | ( | int | i | ) | throws TokenStreamException |
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).
References antlr.debug.ParserEventSupport.fireLA(), and antlr.debug.LLkDebuggingParser.parserEventSupport.
Referenced by antlr.debug.LLkDebuggingParser.consume(), antlr.debug.LLkDebuggingParser.match(), and antlr.debug.LLkDebuggingParser.matchNot().
void antlr.debug.LLkDebuggingParser.match | ( | int | t | ) | throws MismatchedTokenException, TokenStreamException |
Make sure current lookahead symbol matches token type t
. Throw an exception upon mismatch, which is catch by either the error handler or by the syntactic predicate.
References antlr.debug.ParserEventSupport.fireMatch(), antlr.debug.ParserEventSupport.fireMismatch(), antlr.Token.getText(), antlr.ParserSharedInputState.guessing, antlr.Parser.inputState, antlr.debug.LLkDebuggingParser.LA(), antlr.LLkParser.LT(), and antlr.debug.LLkDebuggingParser.parserEventSupport.
void antlr.debug.LLkDebuggingParser.match | ( | BitSet | b | ) | throws MismatchedTokenException, TokenStreamException |
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.
References antlr.debug.ParserEventSupport.fireMatch(), antlr.debug.ParserEventSupport.fireMismatch(), antlr.Token.getText(), antlr.ParserSharedInputState.guessing, antlr.Parser.inputState, antlr.debug.LLkDebuggingParser.LA(), antlr.LLkParser.LT(), and antlr.debug.LLkDebuggingParser.parserEventSupport.
void antlr.debug.LLkDebuggingParser.matchNot | ( | int | t | ) | throws MismatchedTokenException, TokenStreamException |
References antlr.debug.ParserEventSupport.fireMatchNot(), antlr.debug.ParserEventSupport.fireMismatchNot(), antlr.Token.getText(), antlr.ParserSharedInputState.guessing, antlr.Parser.inputState, antlr.debug.LLkDebuggingParser.LA(), antlr.LLkParser.LT(), and antlr.debug.LLkDebuggingParser.parserEventSupport.
void antlr.debug.LLkDebuggingParser.removeMessageListener | ( | MessageListener | l | ) |
void antlr.debug.LLkDebuggingParser.removeParserListener | ( | ParserListener | l | ) |
void antlr.debug.LLkDebuggingParser.removeParserMatchListener | ( | ParserMatchListener | l | ) |
void antlr.debug.LLkDebuggingParser.removeParserTokenListener | ( | ParserTokenListener | l | ) |
void antlr.debug.LLkDebuggingParser.removeSemanticPredicateListener | ( | SemanticPredicateListener | l | ) |
void antlr.debug.LLkDebuggingParser.removeSyntacticPredicateListener | ( | SyntacticPredicateListener | l | ) |
void antlr.debug.LLkDebuggingParser.removeTraceListener | ( | TraceListener | l | ) |
void antlr.debug.LLkDebuggingParser.reportError | ( | String | s | ) |
Parser error-reporting function can be overridden in subclass
References antlr.debug.ParserEventSupport.fireReportError(), and antlr.debug.LLkDebuggingParser.parserEventSupport.
void antlr.debug.LLkDebuggingParser.reportError | ( | RecognitionException | ex | ) |
Parser error-reporting function can be overridden in subclass
References antlr.debug.ParserEventSupport.fireReportError(), and antlr.debug.LLkDebuggingParser.parserEventSupport.
void antlr.debug.LLkDebuggingParser.reportWarning | ( | String | s | ) |
Parser warning-reporting function can be overridden in subclass
References antlr.debug.ParserEventSupport.fireReportWarning(), and antlr.debug.LLkDebuggingParser.parserEventSupport.
void antlr.debug.LLkDebuggingParser.setDebugMode | ( | boolean | value | ) |
Referenced by antlr.debug.LLkDebuggingParser.setupDebugging().
void antlr.debug.LLkDebuggingParser.setupDebugging | ( | TokenStream | lexer | ) |
References antlr.debug.LLkDebuggingParser.setupDebugging().
void antlr.debug.LLkDebuggingParser.setupDebugging | ( | TokenStream | lexer, | |
TokenBuffer | tokenBuf | |||
) | [protected] |
User can override to do their own debugging
References antlr.debug.LLkDebuggingParser.setDebugMode().
void antlr.debug.LLkDebuggingParser.setupDebugging | ( | TokenBuffer | tokenBuf | ) |
Referenced by antlr.debug.LLkDebuggingParser.setupDebugging().
synchronized void antlr.debug.LLkDebuggingParser.wakeUp | ( | ) |
ParserEventSupport antlr.debug.LLkDebuggingParser.parserEventSupport = new ParserEventSupport(this) [protected] |
Referenced by antlr.debug.LLkDebuggingParser.addMessageListener(), antlr.debug.LLkDebuggingParser.addParserListener(), antlr.debug.LLkDebuggingParser.addParserMatchListener(), antlr.debug.LLkDebuggingParser.addParserTokenListener(), antlr.debug.LLkDebuggingParser.addSemanticPredicateListener(), antlr.debug.LLkDebuggingParser.addSyntacticPredicateListener(), antlr.debug.LLkDebuggingParser.addTraceListener(), antlr.debug.LLkDebuggingParser.consume(), antlr.debug.LLkDebuggingParser.fireEnterRule(), antlr.debug.LLkDebuggingParser.fireExitRule(), antlr.debug.LLkDebuggingParser.fireSemanticPredicateEvaluated(), antlr.debug.LLkDebuggingParser.fireSyntacticPredicateFailed(), antlr.debug.LLkDebuggingParser.fireSyntacticPredicateStarted(), antlr.debug.LLkDebuggingParser.fireSyntacticPredicateSucceeded(), antlr.debug.LLkDebuggingParser.LA(), antlr.debug.LLkDebuggingParser.match(), antlr.debug.LLkDebuggingParser.matchNot(), antlr.debug.LLkDebuggingParser.removeMessageListener(), antlr.debug.LLkDebuggingParser.removeParserListener(), antlr.debug.LLkDebuggingParser.removeParserMatchListener(), antlr.debug.LLkDebuggingParser.removeParserTokenListener(), antlr.debug.LLkDebuggingParser.removeSemanticPredicateListener(), antlr.debug.LLkDebuggingParser.removeSyntacticPredicateListener(), antlr.debug.LLkDebuggingParser.removeTraceListener(), antlr.debug.LLkDebuggingParser.reportError(), and antlr.debug.LLkDebuggingParser.reportWarning().
String antlr.debug.LLkDebuggingParser.ruleNames[] [protected] |
Referenced by antlr.debug.LLkDebuggingParser.getRuleName().
String antlr.debug.LLkDebuggingParser.semPredNames[] [protected] |
Referenced by antlr.debug.LLkDebuggingParser.getSemPredName().