Package antlr

Class TreeParser

java.lang.Object
antlr.TreeParser

public class TreeParser extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected AST
    Where did this rule leave off parsing; avoids a return parameter
    protected ASTFactory
    AST support code; parser and treeparser delegate to this object
    The AST Null object; the parsing cursor is set to this when it is found to be null.
    Nesting level of registered handlers
    protected AST
    AST return value for a rule is squirreled away here
    protected String[]
    Table of token type to token names
    protected int
    Used to keep track of indentdepth for traceIn/Out
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the AST return value squirreled away in the parser
     
    getTokenName(int num)
     
     
    protected void
    match(AST t, int ttype)
     
    void
    match(AST t, BitSet b)
    Make sure current lookahead symbol matches the given set Throw an exception upon mismatch, which is catch by either the error handler or by the syntactic predicate.
    protected void
    matchNot(AST t, int ttype)
     
    static void
    Deprecated.
    as of 2.7.2.
    void