antlr.debug
Class DebuggingCharScanner
java.lang.Object
|
+--antlr.CharScanner
|
+--antlr.debug.DebuggingCharScanner
- All Implemented Interfaces:
- DebuggingParser, TokenStream
- public abstract class DebuggingCharScanner
- extends CharScanner
- implements DebuggingParser
Fields inherited from class antlr.CharScanner |
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, text, tokenObjectClass, traceDepth |
Methods inherited from class antlr.CharScanner |
append, append, commit, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getText, getTokenObject, mark, panic, panic, reportError, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setText, setTokenObjectClass, tab, testLiteralsTable, testLiteralsTable, toLower, traceIn, traceIndent, traceOut, uponEOF |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
parserEventSupport
private ParserEventSupport parserEventSupport
_notDebugMode
private boolean _notDebugMode
ruleNames
protected java.lang.String[] ruleNames
semPredNames
protected java.lang.String[] semPredNames
DebuggingCharScanner
public DebuggingCharScanner(InputBuffer cb)
DebuggingCharScanner
public DebuggingCharScanner(LexerSharedInputState state)
addMessageListener
public void addMessageListener(MessageListener l)
addNewLineListener
public void addNewLineListener(NewLineListener l)
addParserListener
public void addParserListener(ParserListener l)
addParserMatchListener
public void addParserMatchListener(ParserMatchListener l)
addParserTokenListener
public void addParserTokenListener(ParserTokenListener l)
addSemanticPredicateListener
public void addSemanticPredicateListener(SemanticPredicateListener l)
addSyntacticPredicateListener
public void addSyntacticPredicateListener(SyntacticPredicateListener l)
addTraceListener
public void addTraceListener(TraceListener l)
consume
public void consume()
throws CharStreamException
- Overrides:
consume
in class CharScanner
CharStreamException
fireEnterRule
protected void fireEnterRule(int num,
int data)
fireExitRule
protected void fireExitRule(int num,
int ttype)
fireSemanticPredicateEvaluated
protected boolean fireSemanticPredicateEvaluated(int type,
int num,
boolean condition)
fireSyntacticPredicateFailed
protected void fireSyntacticPredicateFailed()
fireSyntacticPredicateStarted
protected void fireSyntacticPredicateStarted()
fireSyntacticPredicateSucceeded
protected void fireSyntacticPredicateSucceeded()
getRuleName
public java.lang.String getRuleName(int num)
- Specified by:
getRuleName
in interface DebuggingParser
getSemPredName
public java.lang.String getSemPredName(int num)
- Specified by:
getSemPredName
in interface DebuggingParser
goToSleep
public void goToSleep()
isDebugMode
public boolean isDebugMode()
LA
public char LA(int i)
throws CharStreamException
- Overrides:
LA
in class CharScanner
CharStreamException
makeToken
protected Token makeToken(int t)
- Overrides:
makeToken
in class CharScanner
match
public void match(char c)
throws MismatchedCharException,
CharStreamException
- Overrides:
match
in class CharScanner
MismatchedCharException
CharStreamException
match
public void match(BitSet b)
throws MismatchedCharException,
CharStreamException
- Overrides:
match
in class CharScanner
MismatchedCharException
CharStreamException
match
public void match(java.lang.String s)
throws MismatchedCharException,
CharStreamException
- Overrides:
match
in class CharScanner
MismatchedCharException
CharStreamException
matchNot
public void matchNot(char c)
throws MismatchedCharException,
CharStreamException
- Overrides:
matchNot
in class CharScanner
MismatchedCharException
CharStreamException
matchRange
public void matchRange(char c1,
char c2)
throws MismatchedCharException,
CharStreamException
- Overrides:
matchRange
in class CharScanner
MismatchedCharException
CharStreamException
newline
public void newline()
- Overrides:
newline
in class CharScanner
removeMessageListener
public void removeMessageListener(MessageListener l)
removeNewLineListener
public void removeNewLineListener(NewLineListener l)
removeParserListener
public void removeParserListener(ParserListener l)
removeParserMatchListener
public void removeParserMatchListener(ParserMatchListener l)
removeParserTokenListener
public void removeParserTokenListener(ParserTokenListener l)
removeSemanticPredicateListener
public void removeSemanticPredicateListener(SemanticPredicateListener l)
removeSyntacticPredicateListener
public void removeSyntacticPredicateListener(SyntacticPredicateListener l)
removeTraceListener
public void removeTraceListener(TraceListener l)
reportError
public void reportError(MismatchedCharException e)
- Report exception errors caught in nextToken()
reportError
public void reportError(java.lang.String s)
- Parser error-reporting function can be overridden in subclass
- Overrides:
reportError
in class CharScanner
reportWarning
public void reportWarning(java.lang.String s)
- Parser warning-reporting function can be overridden in subclass
- Overrides:
reportWarning
in class CharScanner
setDebugMode
public void setDebugMode(boolean value)
setupDebugging
public void setupDebugging()
wakeUp
public void wakeUp()