public abstract class DebuggingCharScanner extends CharScanner implements DebuggingParser
| Modifier and Type | Field and Description |
|---|---|
protected String[] |
ruleNames |
protected String[] |
semPredNames |
_returnToken, caseSensitive, caseSensitiveLiterals, commitToPath, EOF_CHAR, hashString, inputState, literals, saveConsumedInput, tabsize, text, tokenObjectClass, traceDepth| Constructor and Description |
|---|
DebuggingCharScanner(InputBuffer cb) |
DebuggingCharScanner(LexerSharedInputState state) |
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, uponEOFclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitnextTokenpublic DebuggingCharScanner(InputBuffer cb)
public DebuggingCharScanner(LexerSharedInputState state)
public void addMessageListener(MessageListener l)
public void addNewLineListener(NewLineListener l)
public void addParserListener(ParserListener l)
public void addParserMatchListener(ParserMatchListener l)
public void addParserTokenListener(ParserTokenListener l)
public void addSemanticPredicateListener(SemanticPredicateListener l)
public void addSyntacticPredicateListener(SyntacticPredicateListener l)
public void addTraceListener(TraceListener l)
public void consume()
throws CharStreamException
consume in class CharScannerCharStreamExceptionprotected 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()
public String getRuleName(int num)
getRuleName in interface DebuggingParserpublic String getSemPredName(int num)
getSemPredName in interface DebuggingParserpublic void goToSleep()
public boolean isDebugMode()
public char LA(int i)
throws CharStreamException
LA in class CharScannerCharStreamExceptionprotected Token makeToken(int t)
makeToken in class CharScannerpublic void match(char c)
throws MismatchedCharException,
CharStreamException
match in class CharScannerMismatchedCharExceptionCharStreamExceptionpublic void match(BitSet b) throws MismatchedCharException, CharStreamException
match in class CharScannerMismatchedCharExceptionCharStreamExceptionpublic void match(String s) throws MismatchedCharException, CharStreamException
match in class CharScannerMismatchedCharExceptionCharStreamExceptionpublic void matchNot(char c)
throws MismatchedCharException,
CharStreamException
matchNot in class CharScannerMismatchedCharExceptionCharStreamExceptionpublic void matchRange(char c1,
char c2)
throws MismatchedCharException,
CharStreamException
matchRange in class CharScannerMismatchedCharExceptionCharStreamExceptionpublic void newline()
newline in class CharScannerpublic void removeMessageListener(MessageListener l)
public void removeNewLineListener(NewLineListener l)
public void removeParserListener(ParserListener l)
public void removeParserMatchListener(ParserMatchListener l)
public void removeParserTokenListener(ParserTokenListener l)
public void removeSemanticPredicateListener(SemanticPredicateListener l)
public void removeSyntacticPredicateListener(SyntacticPredicateListener l)
public void removeTraceListener(TraceListener l)
public void reportError(MismatchedCharException e)
public void reportError(String s)
reportError in class CharScannerpublic void reportWarning(String s)
reportWarning in class CharScannerpublic void setDebugMode(boolean value)
public void setupDebugging()
public void wakeUp()
Copyright © 2017–2019 Eclipse Foundation. All rights reserved.