Package antlr

Class Parser

  • Direct Known Subclasses:
    LLkParser

    public abstract class Parser
    extends Object
    • Field Detail

      • tokenNames

        protected String[] tokenNames
        Table of token type to token names
      • returnAST

        protected AST returnAST
        AST return value for a rule is squirreled away here
      • astFactory

        protected ASTFactory astFactory
        AST support code; parser delegates to this object. This is set during parser construction by default to either "new ASTFactory()" or a ctor that has a token type to class map for hetero nodes.
      • tokenTypeToASTClassMap

        protected Hashtable tokenTypeToASTClassMap
        Constructed if any AST types specified in tokens{..}. Maps an Integer->Class object.
      • traceDepth

        protected int traceDepth
        Used to keep track of indentdepth for traceIn/Out