Property | Type | Description | |
---|---|---|---|
currentParseTreeRoot | System.Collections.Stack | ||
mostRecentParseTreeRoot | antlr.ParseTreeRule | ||
numberOfDerivationSteps | int |
Method | Description | |
---|---|---|
ParseTreeDebugParser ( antlr.ParserSharedInputState state, int k_ ) : antlr | ||
ParseTreeDebugParser ( antlr.TokenBuffer tokenBuf, int k_ ) : antlr | ||
ParseTreeDebugParser ( TokenStream lexer, int k_ ) : antlr | ||
ParseTreeDebugParser ( int k_ ) : antlr | ||
getNumberOfDerivationSteps ( ) : int | ||
getParseTree ( ) : antlr.ParseTree | ||
match ( antlr.collections.impl.BitSet bitSet ) : void | ||
match ( int i ) : void | ||
matchNot ( int i ) : void | ||
traceIn ( string s ) : void |
Create a rule node, add to current tree, and make it current root
|
|
traceOut ( string s ) : void |
Pop current root; back to adding to old root
|
Method | Description | |
---|---|---|
addCurrentTokenToParseTree ( ) : void |
Adds LT(1) to the current parse subtree. Note that the match() routines add the node before checking for correct match. This means that, upon mismatched token, there will a token node in the tree corresponding to where that token was expected. For no viable alternative errors, no node will be in the tree as nothing was matched() (the lookahead failed to predict an alternative). |
public ParseTreeDebugParser ( antlr.ParserSharedInputState state, int k_ ) : antlr | ||
state | antlr.ParserSharedInputState | |
k_ | int | |
return | antlr |
public ParseTreeDebugParser ( antlr.TokenBuffer tokenBuf, int k_ ) : antlr | ||
tokenBuf | antlr.TokenBuffer | |
k_ | int | |
return | antlr |
public ParseTreeDebugParser ( TokenStream lexer, int k_ ) : antlr | ||
lexer | TokenStream | |
k_ | int | |
return | antlr |
public ParseTreeDebugParser ( int k_ ) : antlr | ||
k_ | int | |
return | antlr |
protected addCurrentTokenToParseTree ( ) : void | ||
return | void |
public match ( antlr.collections.impl.BitSet bitSet ) : void | ||
bitSet | antlr.collections.impl.BitSet | |
return | void |
protected System.Collections.Stack currentParseTreeRoot | ||
return | System.Collections.Stack |
protected ParseTreeRule,antlr mostRecentParseTreeRoot | ||
return | antlr.ParseTreeRule |