C# Class Antlr4.Runtime.Dfa.DFASerializer

A DFA walker that knows how to dump them to serialized strings.
A DFA walker that knows how to dump them to serialized strings.
Show file Open project: antlr/antlr4 Class Usage Examples

Public Methods

Method Description
DFASerializer ( DFA dfa, IRecognizer parser ) : System
DFASerializer ( DFA dfa, IVocabulary vocabulary ) : System
DFASerializer ( DFA dfa, IVocabulary vocabulary, string ruleNames, ATN atn ) : System
ToString ( ) : string

Protected Methods

Method Description
GetContextLabel ( int i ) : string
GetEdgeLabel ( int i ) : string

Private Methods

Method Description
GetStateString ( DFAState s ) : string

Method Details

DFASerializer() public method

public DFASerializer ( DFA dfa, IRecognizer parser ) : System
dfa DFA
parser IRecognizer
return System

DFASerializer() public method

public DFASerializer ( DFA dfa, IVocabulary vocabulary ) : System
dfa DFA
vocabulary IVocabulary
return System

DFASerializer() public method

public DFASerializer ( DFA dfa, IVocabulary vocabulary, string ruleNames, ATN atn ) : System
dfa DFA
vocabulary IVocabulary
ruleNames string
atn Antlr4.Runtime.Atn.ATN
return System

GetContextLabel() protected method

protected GetContextLabel ( int i ) : string
i int
return string

GetEdgeLabel() protected method

protected GetEdgeLabel ( int i ) : string
i int
return string

ToString() public method

public ToString ( ) : string
return string