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 RecognitionExceptionListstatic final I18NBundleprotected ObjectListFields inherited from class antlr.Parser
astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconsume()protected RecognitionExceptionListfinal RecognitionExceptionListvoidinsertTokenInStream(antlr.Token t) intLA(int i) final voidparse()protected abstract antlr.collections.ASTvoidprintTree(antlr.collections.AST root, int indentation) voidreset()voidsetDumpTree(boolean dump) voidvoidMethods inherited from class antlr.LLkParser
LT, traceIn, traceOutMethods 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.RecognitionExceptionantlr.TokenStreamException
-
reset
public void reset() -
parse
- Throws:
RecognitionExceptionIOException
-
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:
LAin classantlr.LLkParser- Throws:
antlr.TokenStreamException
-
consume
public void consume() throws antlr.TokenStreamException- Overrides:
consumein classantlr.LLkParser- Throws:
antlr.TokenStreamException
-