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


Field Summary
protected  String[] ruleNames
           
protected  String[] semPredNames
           
 
Fields inherited from class antlr.CharScanner
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth
 
Constructor Summary
DebuggingCharScanner(InputBuffer cb)
           
DebuggingCharScanner(LexerSharedInputState state)
           
 
Method Summary
 void addMessageListener(MessageListener l)
           
 void addNewLineListener(NewLineListener 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()
           
protected  void fireEnterRule(int num, int data)
           
protected  void fireExitRule(int num, int ttype)
           
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()
           
 char LA(int i)
           
protected  Token makeToken(int t)
           
 void match(BitSet b)
           
 void match(char c)
           
 void match(String s)
           
 void matchNot(char c)
           
 void matchRange(char c1, char c2)
           
 void newline()
           
 void removeMessageListener(MessageListener l)
           
 void removeNewLineListener(NewLineListener 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(MismatchedCharException e)
          Report exception errors caught in nextToken()
 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()
           
 void wakeUp()
           
 
Methods inherited from class antlr.CharScanner
append, append, commit, consumeUntil, consumeUntil, getCaseSensitive, getCaseSensitiveLiterals, getColumn, getCommitToPath, getFilename, getInputBuffer, getInputState, getLine, getTabSize, getText, getTokenObject, mark, panic, panic, reportError, resetText, rewind, setCaseSensitive, setColumn, setCommitToPath, setFilename, setInputState, setLine, setTabSize, 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
 
Methods inherited from interface antlr.TokenStream
nextToken
 

Field Detail

ruleNames

protected String[] ruleNames

semPredNames

protected String[] semPredNames
Constructor Detail

DebuggingCharScanner

public DebuggingCharScanner(InputBuffer cb)

DebuggingCharScanner

public DebuggingCharScanner(LexerSharedInputState state)
Method Detail

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 String getRuleName(int num)
Specified by:
getRuleName in interface DebuggingParser

getSemPredName

public 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(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(String s)
Parser error-reporting function can be overridden in subclass

Overrides:
reportError in class CharScanner

reportWarning

public void reportWarning(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()


Copyright 1999-2003 Oliver Zeigermann. All Rights Reserved.