C# Class Spring.Expressions.Parser.antlr.debug.LLkDebuggingParser

Inheritance: LLkParser, DebuggingParser
Show file Open project: spring-projects/spring-net

Protected Properties

Property Type Description
parserEventSupport ParserEventSupport
ruleNames string[]
semPredNames string[]

Public Methods

Method Description
LA ( int i ) : int

Return the token type of the ith token of lookahead where i=1 is the current token being examined by the parser (i.e., it has not been matched yet).

LLkDebuggingParser ( ParserSharedInputState state, int k_ ) : System.Threading
LLkDebuggingParser ( TokenBuffer tokenBuf, int k_ ) : System.Threading
LLkDebuggingParser ( TokenStream lexer, int k_ ) : System.Threading
LLkDebuggingParser ( int k_ ) : System.Threading
addMessageListener ( MessageListener l ) : void
addParserListener ( ParserListener l ) : void
addParserMatchListener ( ParserMatchListener l ) : void
addParserTokenListener ( ParserTokenListener l ) : void
addSemanticPredicateListener ( SemanticPredicateListener l ) : void
addSyntacticPredicateListener ( SyntacticPredicateListener l ) : void
addTraceListener ( TraceListener l ) : void
consume ( ) : void

Get another token object from the token stream

getRuleName ( int num ) : string
getSemPredName ( int num ) : string
goToSleep ( ) : void
isDebugMode ( ) : bool
isGuessing ( ) : bool
match ( antlr.collections.impl.BitSet b ) : void

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.

match ( int t ) : void

Make sure current lookahead symbol matches token type t. Throw an exception upon mismatch, which is catch by either the error handler or by the syntactic predicate.

matchNot ( int t ) : void
removeMessageListener ( MessageListener l ) : void
removeParserListener ( ParserListener l ) : void
removeParserMatchListener ( ParserMatchListener l ) : void
removeParserTokenListener ( ParserTokenListener l ) : void
removeSemanticPredicateListener ( SemanticPredicateListener l ) : void
removeSyntacticPredicateListener ( SyntacticPredicateListener l ) : void
removeTraceListener ( TraceListener l ) : void
reportError ( RecognitionException ex ) : void

Parser error-reporting function can be overridden in subclass

reportError ( string s ) : void

Parser error-reporting function can be overridden in subclass

reportWarning ( string s ) : void

Parser warning-reporting function can be overridden in subclass

setDebugMode ( bool mode ) : void
setupDebugging ( TokenBuffer tokenBuf ) : void
setupDebugging ( TokenStream lexer ) : void
wakeUp ( ) : void

Protected Methods

Method Description
fireEnterRule ( int num, int data ) : void
fireExitRule ( int num, int data ) : void
fireSemanticPredicateEvaluated ( int type, int num, bool condition ) : bool
fireSyntacticPredicateFailed ( ) : void
fireSyntacticPredicateStarted ( ) : void
fireSyntacticPredicateSucceeded ( ) : void
setupDebugging ( TokenStream lexer, TokenBuffer tokenBuf ) : void

User can override to do their own debugging

Private Methods

Method Description
InitBlock ( ) : void

Method Details

LA() public method

Return the token type of the ith token of lookahead where i=1 is the current token being examined by the parser (i.e., it has not been matched yet).
public LA ( int i ) : int
i int
return int

LLkDebuggingParser() public method

public LLkDebuggingParser ( ParserSharedInputState state, int k_ ) : System.Threading
state ParserSharedInputState
k_ int
return System.Threading

LLkDebuggingParser() public method

public LLkDebuggingParser ( TokenBuffer tokenBuf, int k_ ) : System.Threading
tokenBuf TokenBuffer
k_ int
return System.Threading

LLkDebuggingParser() public method

public LLkDebuggingParser ( TokenStream lexer, int k_ ) : System.Threading
lexer TokenStream
k_ int
return System.Threading

LLkDebuggingParser() public method

public LLkDebuggingParser ( int k_ ) : System.Threading
k_ int
return System.Threading

addMessageListener() public method

public addMessageListener ( MessageListener l ) : void
l MessageListener
return void

addParserListener() public method

public addParserListener ( ParserListener l ) : void
l ParserListener
return void

addParserMatchListener() public method

public addParserMatchListener ( ParserMatchListener l ) : void
l ParserMatchListener
return void

addParserTokenListener() public method

public addParserTokenListener ( ParserTokenListener l ) : void
l ParserTokenListener
return void

addSemanticPredicateListener() public method

public addSemanticPredicateListener ( SemanticPredicateListener l ) : void
l SemanticPredicateListener
return void

addSyntacticPredicateListener() public method

public addSyntacticPredicateListener ( SyntacticPredicateListener l ) : void
l SyntacticPredicateListener
return void

addTraceListener() public method

public addTraceListener ( TraceListener l ) : void
l TraceListener
return void

consume() public method

Get another token object from the token stream
public consume ( ) : void
return void

fireEnterRule() protected method

protected fireEnterRule ( int num, int data ) : void
num int
data int
return void

fireExitRule() protected method

protected fireExitRule ( int num, int data ) : void
num int
data int
return void

fireSemanticPredicateEvaluated() protected method

protected fireSemanticPredicateEvaluated ( int type, int num, bool condition ) : bool
type int
num int
condition bool
return bool

fireSyntacticPredicateFailed() protected method

protected fireSyntacticPredicateFailed ( ) : void
return void

fireSyntacticPredicateStarted() protected method

protected fireSyntacticPredicateStarted ( ) : void
return void

fireSyntacticPredicateSucceeded() protected method

protected fireSyntacticPredicateSucceeded ( ) : void
return void

getRuleName() public method

public getRuleName ( int num ) : string
num int
return string

getSemPredName() public method

public getSemPredName ( int num ) : string
num int
return string

goToSleep() public method

public goToSleep ( ) : void
return void

isDebugMode() public method

public isDebugMode ( ) : bool
return bool

isGuessing() public method

public isGuessing ( ) : bool
return bool

match() public method

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.
public match ( antlr.collections.impl.BitSet b ) : void
b antlr.collections.impl.BitSet
return void

match() public method

Make sure current lookahead symbol matches token type t. Throw an exception upon mismatch, which is catch by either the error handler or by the syntactic predicate.
public match ( int t ) : void
t int
return void

matchNot() public method

public matchNot ( int t ) : void
t int
return void

removeMessageListener() public method

public removeMessageListener ( MessageListener l ) : void
l MessageListener
return void

removeParserListener() public method

public removeParserListener ( ParserListener l ) : void
l ParserListener
return void

removeParserMatchListener() public method

public removeParserMatchListener ( ParserMatchListener l ) : void
l ParserMatchListener
return void

removeParserTokenListener() public method

public removeParserTokenListener ( ParserTokenListener l ) : void
l ParserTokenListener
return void

removeSemanticPredicateListener() public method

public removeSemanticPredicateListener ( SemanticPredicateListener l ) : void
l SemanticPredicateListener
return void

removeSyntacticPredicateListener() public method

public removeSyntacticPredicateListener ( SyntacticPredicateListener l ) : void
l SyntacticPredicateListener
return void

removeTraceListener() public method

public removeTraceListener ( TraceListener l ) : void
l TraceListener
return void

reportError() public method

Parser error-reporting function can be overridden in subclass
public reportError ( RecognitionException ex ) : void
ex RecognitionException
return void

reportError() public method

Parser error-reporting function can be overridden in subclass
public reportError ( string s ) : void
s string
return void

reportWarning() public method

Parser warning-reporting function can be overridden in subclass
public reportWarning ( string s ) : void
s string
return void

setDebugMode() public method

public setDebugMode ( bool mode ) : void
mode bool
return void

setupDebugging() public method

public setupDebugging ( TokenBuffer tokenBuf ) : void
tokenBuf TokenBuffer
return void

setupDebugging() public method

public setupDebugging ( TokenStream lexer ) : void
lexer TokenStream
return void

setupDebugging() protected method

User can override to do their own debugging
protected setupDebugging ( TokenStream lexer, TokenBuffer tokenBuf ) : void
lexer TokenStream
tokenBuf TokenBuffer
return void

wakeUp() public method

public wakeUp ( ) : void
return void

Property Details

parserEventSupport protected property

protected ParserEventSupport,Spring.Expressions.Parser.antlr.debug parserEventSupport
return ParserEventSupport

ruleNames protected property

protected string[] ruleNames
return string[]

semPredNames protected property

protected string[] semPredNames
return string[]