C# Class Antlr4.Tool.DOTGenerator

Datei anzeigen Open project: sharwell/antlr4cs Class Usage Examples

Public Properties

Property Type Description
STRIP_NONREDUCED_STATES bool
stlib Antlr4.StringTemplate.TemplateGroup

Protected Properties

Property Type Description
arrowhead string
grammar Grammar
rankdir string

Public Methods

Method Description
DOTGenerator ( Grammar grammar ) : System.Collections.Generic
GetDOT ( ATNState startState ) : string
GetDOT ( ATNState startState, bool isLexer ) : string
GetDOT ( ATNState startState, string ruleNames, bool isLexer ) : string
GetDOT ( DFA dfa, bool isLexer ) : string

Protected Methods

Method Description
GetEdgeLabel ( string label ) : string
GetStateLabel ( ATNState s ) : string
GetStateLabel ( DFAState s ) : string

Method Details

DOTGenerator() public method

public DOTGenerator ( Grammar grammar ) : System.Collections.Generic
grammar Grammar
return System.Collections.Generic

GetDOT() public method

public GetDOT ( ATNState startState ) : string
startState Antlr4.Runtime.Atn.ATNState
return string

GetDOT() public method

public GetDOT ( ATNState startState, bool isLexer ) : string
startState Antlr4.Runtime.Atn.ATNState
isLexer bool
return string

GetDOT() public method

public GetDOT ( ATNState startState, string ruleNames, bool isLexer ) : string
startState Antlr4.Runtime.Atn.ATNState
ruleNames string
isLexer bool
return string

GetDOT() public method

public GetDOT ( DFA dfa, bool isLexer ) : string
dfa Antlr4.Runtime.Dfa.DFA
isLexer bool
return string

GetEdgeLabel() protected method

protected GetEdgeLabel ( string label ) : string
label string
return string

GetStateLabel() protected method

protected GetStateLabel ( ATNState s ) : string
s Antlr4.Runtime.Atn.ATNState
return string

GetStateLabel() protected method

protected GetStateLabel ( DFAState s ) : string
s Antlr4.Runtime.Dfa.DFAState
return string

Property Details

STRIP_NONREDUCED_STATES public_oe static_oe property

public static bool STRIP_NONREDUCED_STATES
return bool

arrowhead protected_oe property

protected string arrowhead
return string

grammar protected_oe property

protected Grammar,Antlr4.Tool grammar
return Grammar

rankdir protected_oe property

protected string rankdir
return string

stlib public_oe static_oe property

public static TemplateGroup,Antlr4.StringTemplate stlib
return Antlr4.StringTemplate.TemplateGroup