java.lang.Object
antlr.Parser
antlr.LLkParser
de.grogra.xl.parser.Parser
public abstract class Parser
extends antlr.LLkParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RecognitionExceptionList
static final I18NBundle
protected ObjectList
Fields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
consume()
protected RecognitionExceptionList
final RecognitionExceptionList
void
insertTokenInStream
(antlr.Token t) int
LA
(int i) final void
parse()
protected abstract antlr.collections.AST
void
printTree
(antlr.collections.AST root, int indentation) void
reset()
void
setDumpTree
(boolean dump) void
void
Methods inherited from class antlr.LLkParser
LT, traceIn, traceOut
Methods inherited from class antlr.Parser
addMessageListener, addParserListener, addParserMatchListener, addParserTokenListener, addSemanticPredicateListener, addSyntacticPredicateListener, addTraceListener, consumeUntil, consumeUntil, defaultDebuggingSetup, getAST, getASTFactory, getFilename, getInputState, getTokenName, getTokenNames, getTokenTypeToASTClassMap, isDebugMode, mark, match, match, matchNot, panic, recover, removeMessageListener, removeParserListener, removeParserMatchListener, removeParserTokenListener, removeSemanticPredicateListener, removeSyntacticPredicateListener, removeTraceListener, reportError, reportError, reportWarning, rewind, setASTFactory, setASTNodeClass, setASTNodeType, setDebugMode, setFilename, setIgnoreInvalidDebugCalls, setInputState, setTokenBuffer, traceIndent
-
Field Details
-
I18N
-
insertedTokens
-
exceptionList
-
-
Constructor Details
-
Parser
protected Parser(antlr.TokenBuffer buffer, int k) -
Parser
protected Parser(antlr.TokenStream lexer, int k)
-
-
Method Details
-
setSource
-
setSource
-
setDumpTree
public void setDumpTree(boolean dump) -
parseGoalSymbol
protected abstract antlr.collections.AST parseGoalSymbol() throws antlr.RecognitionException, antlr.TokenStreamException- Throws:
antlr.RecognitionException
antlr.TokenStreamException
-
reset
public void reset() -
parse
- Throws:
RecognitionException
IOException
-
getExceptionList
-
createExceptionList
-
printTree
public void printTree(antlr.collections.AST root, int indentation) -
insertTokenInStream
public void insertTokenInStream(antlr.Token t) -
LA
public int LA(int i) throws antlr.TokenStreamException - Overrides:
LA
in classantlr.LLkParser
- Throws:
antlr.TokenStreamException
-
consume
public void consume() throws antlr.TokenStreamException- Overrides:
consume
in classantlr.LLkParser
- Throws:
antlr.TokenStreamException
-