C# Class Antlr4.Analysis.LeftRecursionDetector

显示文件 Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
atn Antlr4.Runtime.Atn.ATN
listOfRecursiveCycles IList>

Public Methods

Method Description
Check ( Rule enclosingRule, ATNState s, ISet visitedStates ) : bool
Check ( ) : void
LeftRecursionDetector ( Grammar g, ATN atn ) : System.Collections.Generic

Protected Methods

Method Description
AddRulesToCycle ( Rule enclosingRule, Rule targetRule ) : void

Method Details

AddRulesToCycle() protected method

protected AddRulesToCycle ( Rule enclosingRule, Rule targetRule ) : void
enclosingRule Antlr4.Tool.Rule
targetRule Antlr4.Tool.Rule
return void

Check() public method

public Check ( Rule enclosingRule, ATNState s, ISet visitedStates ) : bool
enclosingRule Antlr4.Tool.Rule
s Antlr4.Runtime.Atn.ATNState
visitedStates ISet
return bool

Check() public method

public Check ( ) : void
return void

LeftRecursionDetector() public method

public LeftRecursionDetector ( Grammar g, ATN atn ) : System.Collections.Generic
g Antlr4.Tool.Grammar
atn Antlr4.Runtime.Atn.ATN
return System.Collections.Generic

Property Details

atn public_oe property

public ATN,Antlr4.Runtime.Atn atn
return Antlr4.Runtime.Atn.ATN

listOfRecursiveCycles public_oe property

public IList> listOfRecursiveCycles
return IList>