示例#1
0
 static XPathLexer()
 {
     decisionToDFA = new DFA[_ATN.NumberOfDecisions];
     for (int i = 0; i < _ATN.NumberOfDecisions; i++)
     {
         decisionToDFA[i] = new DFA(_ATN.GetDecisionState(i), i);
     }
 }
示例#2
0
 public DFASerializer(DFA dfa, IRecognizer parser)
     : this(dfa, parser != null ? parser.Vocabulary : Vocabulary.EmptyVocabulary, parser != null ? parser.RuleNames : null, parser != null ? parser.Atn : null)
 {
 }
示例#3
0
 public DFASerializer(DFA dfa, IVocabulary vocabulary)
     : this(dfa, vocabulary, null, null)
 {
 }