|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.Parser | +--antlr.LLkParser | +--antlr.debug.LLkDebuggingParser
Untamed:
Field Summary | |
private boolean |
_notDebugMode
|
protected ParserEventSupport |
parserEventSupport
|
protected String[] |
ruleNames
|
protected String[] |
semPredNames
|
Fields inherited from class antlr.LLkParser |
|
Fields inherited from class antlr.Parser |
astFactory, inputState, returnAST, tokenNames, traceDepth |
Constructor Summary | |
LLkDebuggingParser(int k_)
Enabled: |
|
LLkDebuggingParser(ParserSharedInputState state,
int k_)
Enabled: |
|
LLkDebuggingParser(TokenBuffer tokenBuf,
int k_)
Enabled: |
|
LLkDebuggingParser(TokenStream lexer,
int k_)
Enabled: |
Method Summary | |
void |
addMessageListener(MessageListener l)
Enabled: |
void |
addParserListener(ParserListener l)
Enabled: |
void |
addParserMatchListener(ParserMatchListener l)
Enabled: |
void |
addParserTokenListener(ParserTokenListener l)
Enabled: |
void |
addSemanticPredicateListener(SemanticPredicateListener l)
Enabled: |
void |
addSyntacticPredicateListener(SyntacticPredicateListener l)
Enabled: |
void |
addTraceListener(TraceListener l)
Enabled: |
void |
consume()
Enabled: 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)
Enabled: |
String |
getSemPredName(int num)
Enabled: |
void |
goToSleep()
Enabled: |
boolean |
isDebugMode()
Enabled: |
boolean |
isGuessing()
Enabled: |
int |
LA(int i)
Enabled: 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(BitSet b)
Enabled: 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 |
match(int t)
Enabled: Make sure current lookahead symbol matches token type t. |
void |
matchNot(int t)
Enabled: |
void |
removeMessageListener(MessageListener l)
Enabled: |
void |
removeParserListener(ParserListener l)
Enabled: |
void |
removeParserMatchListener(ParserMatchListener l)
Enabled: |
void |
removeParserTokenListener(ParserTokenListener l)
Enabled: |
void |
removeSemanticPredicateListener(SemanticPredicateListener l)
Enabled: |
void |
removeSyntacticPredicateListener(SyntacticPredicateListener l)
Enabled: |
void |
removeTraceListener(TraceListener l)
Enabled: |
void |
reportError(RecognitionException ex)
Enabled: Parser error-reporting function can be overridden in subclass |
void |
reportError(String s)
Enabled: Parser error-reporting function can be overridden in subclass |
void |
reportWarning(String s)
Enabled: Parser warning-reporting function can be overridden in subclass |
void |
setDebugMode(boolean value)
Enabled: |
void |
setupDebugging(TokenBuffer tokenBuf)
Enabled: |
void |
setupDebugging(TokenStream lexer)
Enabled: |
protected void |
setupDebugging(TokenStream lexer,
TokenBuffer tokenBuf)
User can override to do their own debugging |
void |
wakeUp()
Enabled: |
Methods inherited from class antlr.LLkParser |
LT, traceIn, traceOut |
Methods inherited from class antlr.Parser |
consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, mark, panic, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected ParserEventSupport parserEventSupport
private boolean _notDebugMode
protected String[] ruleNames
protected String[] semPredNames
Constructor Detail |
public LLkDebuggingParser(int k_)
public LLkDebuggingParser(ParserSharedInputState state, int k_)
public LLkDebuggingParser(TokenBuffer tokenBuf, int k_)
public LLkDebuggingParser(TokenStream lexer, int k_)
Method Detail |
public void addMessageListener(MessageListener l)
addMessageListener
in class Parser
public void addParserListener(ParserListener l)
addParserListener
in class Parser
public void addParserMatchListener(ParserMatchListener l)
addParserMatchListener
in class Parser
public void addParserTokenListener(ParserTokenListener l)
addParserTokenListener
in class Parser
public void addSemanticPredicateListener(SemanticPredicateListener l)
addSemanticPredicateListener
in class Parser
public void addSyntacticPredicateListener(SyntacticPredicateListener l)
addSyntacticPredicateListener
in class Parser
public void addTraceListener(TraceListener l)
addTraceListener
in class Parser
public void consume()
consume
in class LLkParser
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()
public String getRuleName(int num)
getRuleName
in interface DebuggingParser
public String getSemPredName(int num)
getSemPredName
in interface DebuggingParser
public void goToSleep()
public boolean isDebugMode()
isDebugMode
in class Parser
public boolean isGuessing()
public int LA(int i) throws TokenStreamException
LA
in class LLkParser
TokenStreamException
public void match(int t) throws MismatchedTokenException, TokenStreamException
match
in class Parser
MismatchedTokenException
TokenStreamException
public void match(BitSet b) throws MismatchedTokenException, TokenStreamException
match
in class Parser
MismatchedTokenException
TokenStreamException
public void matchNot(int t) throws MismatchedTokenException, TokenStreamException
matchNot
in class Parser
MismatchedTokenException
TokenStreamException
public void removeMessageListener(MessageListener l)
removeMessageListener
in class Parser
public void removeParserListener(ParserListener l)
removeParserListener
in class Parser
public void removeParserMatchListener(ParserMatchListener l)
removeParserMatchListener
in class Parser
public void removeParserTokenListener(ParserTokenListener l)
removeParserTokenListener
in class Parser
public void removeSemanticPredicateListener(SemanticPredicateListener l)
removeSemanticPredicateListener
in class Parser
public void removeSyntacticPredicateListener(SyntacticPredicateListener l)
removeSyntacticPredicateListener
in class Parser
public void removeTraceListener(TraceListener l)
removeTraceListener
in class Parser
public void reportError(RecognitionException ex)
reportError
in class Parser
public void reportError(String s)
reportError
in class Parser
public void reportWarning(String s)
reportWarning
in class Parser
public void setDebugMode(boolean value)
setDebugMode
in class Parser
public void setupDebugging(TokenBuffer tokenBuf)
public void setupDebugging(TokenStream lexer)
protected void setupDebugging(TokenStream lexer, TokenBuffer tokenBuf)
public void wakeUp()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |