public abstract class AbstractCSVParser
extends org.antlr.runtime.Parser
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCSVParser(org.antlr.runtime.TokenStream input)
Create a new parser instance, pre-supplying the input token stream.
|
protected |
AbstractCSVParser(org.antlr.runtime.TokenStream input,
org.antlr.runtime.RecognizerSharedState state)
Create a new parser instance, pre-supplying the input token stream and
the shared state.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
addCell(java.lang.String cell) |
void |
displayRecognitionError(java.lang.String[] tokenNames,
org.antlr.runtime.RecognitionException e)
Creates the error/warning message that we need to show users/IDEs when
ANTLR has found a parsing error, has recovered from it and is now telling
us that a parsing exception occurred.
|
void |
setCallback(CSVCallback callback) |
protected void |
startNewLine() |
getCurrentInputSymbol, getMissingSymbol, getSourceName, getTokenStream, reset, setTokenStream, traceIn, traceOutalreadyParsedRule, beginResync, combineFollows, computeContextSensitiveRuleFOLLOW, computeErrorRecoverySet, consumeUntil, consumeUntil, emitErrorMessage, endResync, failed, getBacktrackingLevel, getErrorHeader, getErrorMessage, getGrammarFileName, getNumberOfSyntaxErrors, getRuleInvocationStack, getRuleInvocationStack, getRuleMemoization, getRuleMemoizationCacheSize, getTokenErrorDisplay, getTokenNames, match, matchAny, memoize, mismatchIsMissingToken, mismatchIsUnwantedToken, pushFollow, recover, recoverFromMismatchedSet, recoverFromMismatchedToken, reportError, setBacktrackingLevel, toStrings, traceIn, traceOutprotected AbstractCSVParser(org.antlr.runtime.TokenStream input)
input - The stream of tokens that will be pulled from the lexerprotected AbstractCSVParser(org.antlr.runtime.TokenStream input,
org.antlr.runtime.RecognizerSharedState state)
input - The stream of tokesn that will be pulled from the lexerstate - The shared state object created by an interconnectd grammarpublic void setCallback(CSVCallback callback)
protected void startNewLine()
protected void addCell(java.lang.String cell)
public void displayRecognitionError(java.lang.String[] tokenNames,
org.antlr.runtime.RecognitionException e)
displayRecognitionError in class org.antlr.runtime.BaseRecognizertokenNames - token names as known by ANTLR (which we ignore)e - The exception that was thrown