|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--antlr.TreeParser
Untamed:
Field Summary | |
protected AST |
_retTree
Where did this rule leave off parsing; avoids a return parameter |
protected ASTFactory |
astFactory
AST support code; parser and treeparser delegate to this object |
static ASTNULLType |
ASTNULL
Enabled: The AST Null object; the parsing cursor is set to this when it is found to be null. |
protected TreeParserSharedInputState |
inputState
Nesting level of registered handlers |
protected AST |
returnAST
AST return value for a rule is squirreled away here |
protected String[] |
tokenNames
Table of token type to token names |
protected int |
traceDepth
Used to keep track of indentdepth for traceIn/Out |
Constructor Summary | |
TreeParser()
Enabled: |
Method Summary | |
AST |
getAST()
Enabled: Get the AST return value squirreled away in the parser |
ASTFactory |
getASTFactory()
Enabled: |
String |
getTokenName(int num)
Enabled: |
String[] |
getTokenNames()
Enabled: |
void |
match(AST t,
BitSet b)
Enabled: 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 |
match(AST t,
int ttype)
|
protected void |
matchNot(AST t,
int ttype)
|
static void |
panic()
Enabled: |
void |
reportError(RecognitionException ex)
Enabled: Parser error-reporting function can be overridden in subclass |
void |
reportError(String s)
Enabled: Parser error-reporting function can be overridden in subclass |
void |
reportWarning(String s)
Enabled: Parser warning-reporting function can be overridden in subclass |
void |
setASTFactory(ASTFactory f)
Enabled: Specify an object with support code (shared by Parser and TreeParser. |
void |
setASTNodeClass(String nodeType)
Enabled: Specify the type of node to create during tree building |
void |
setASTNodeType(String nodeType)
Enabled: Specify the type of node to create during tree building |
void |
traceIn(String rname,
AST t)
Enabled: |
void |
traceIndent()
Enabled: |
void |
traceOut(String rname,
AST t)
Enabled: |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static ASTNULLType ASTNULL
protected AST _retTree
protected TreeParserSharedInputState inputState
protected String[] tokenNames
protected AST returnAST
protected ASTFactory astFactory
protected int traceDepth
Constructor Detail |
public TreeParser()
Method Detail |
public AST getAST()
public ASTFactory getASTFactory()
public String getTokenName(int num)
public String[] getTokenNames()
protected void match(AST t, int ttype) throws MismatchedTokenException
MismatchedTokenException
public void match(AST t, BitSet b) throws MismatchedTokenException
MismatchedTokenException
protected void matchNot(AST t, int ttype) throws MismatchedTokenException
MismatchedTokenException
public static void panic()
public void reportError(RecognitionException ex)
public void reportError(String s)
public void reportWarning(String s)
public void setASTFactory(ASTFactory f)
public void setASTNodeType(String nodeType)
public void setASTNodeClass(String nodeType)
public void traceIndent()
public void traceIn(String rname, AST t)
public void traceOut(String rname, AST t)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |