Module xl.compiler

Class Parser

java.lang.Object
antlr.Parser
antlr.LLkParser
de.grogra.xl.parser.Parser
Direct Known Subclasses:
LSYParser, XLParser

public abstract class Parser extends antlr.LLkParser
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final RecognitionExceptionList
     
    static final I18NBundle
     

    Fields inherited from class antlr.Parser

    astFactory, inputState, returnAST, tokenNames, tokenTypeToASTClassMap, traceDepth
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Parser(antlr.ParserSharedInputState state, int k)
     
    protected
    Parser(antlr.TokenBuffer buffer, int k)
     
    protected
    Parser(antlr.TokenStream lexer, int k)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    final void
     
    protected abstract antlr.collections.AST
     
    void
    printTree(antlr.collections.AST root, int indentation)
     
    void
     
    void
    setDumpTree(boolean dump)
     
    void
    setSource(Reader source)
     
    void
    setSource(Reader source, String name)
     

    Methods inherited from class antlr.LLkParser

    consume, LA, 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • Parser

      protected Parser(antlr.TokenBuffer buffer, int k)
    • Parser

      protected Parser(antlr.TokenStream lexer, int k)
    • Parser

      protected Parser(antlr.ParserSharedInputState state, int k)
  • Method Details

    • setSource

      public void setSource(Reader source)
    • setSource

      public void setSource(Reader source, String name)
    • 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

      public final void parse() throws RecognitionException, IOException
      Throws:
      RecognitionException
      IOException
    • getExceptionList

      public final RecognitionExceptionList getExceptionList()
    • createExceptionList

      protected RecognitionExceptionList createExceptionList()
    • printTree

      public void printTree(antlr.collections.AST root, int indentation)