A DFA walker that knows how to dump them to serialized strings.
A DFA walker that knows how to dump them to serialized strings.
Beispiel #1
0
        public virtual string ToString([NotNull] IVocabulary vocabulary)
        {
            if (s0.Get() == null)
            {
                return(string.Empty);
            }
            DFASerializer serializer = new DFASerializer(this, vocabulary);

            return(serializer.ToString());
        }
Beispiel #2
0
        public virtual string ToString([NotNull] IVocabulary vocabulary, [Nullable] string[] ruleNames)
        {
            if (s0.Get() == null)
            {
                return(string.Empty);
            }
            DFASerializer serializer = new DFASerializer(this, vocabulary, ruleNames, atnStartState.atn);

            return(serializer.ToString());
        }
Beispiel #3
0
        public virtual string ToString(string[] tokenNames, string[] ruleNames)
        {
            if (s0.Get() == null)
            {
                return(string.Empty);
            }
            DFASerializer serializer = new DFASerializer(this, tokenNames, ruleNames, atnStartState.atn);

            return(serializer.ToString());
        }
Beispiel #4
0
        public virtual string ToString([Nullable] string[] tokenNames)
        {
            if (s0.Get() == null)
            {
                return(string.Empty);
            }
            DFASerializer serializer = new DFASerializer(this, tokenNames);

            return(serializer.ToString());
        }
Beispiel #5
0
        public String ToString(IVocabulary vocabulary)
        {
            if (s0 == null)
            {
                return("");
            }

            DFASerializer serializer = new DFASerializer(this, vocabulary);

            return(serializer.ToString());
        }
Beispiel #6
0
 public virtual string ToString(IVocabulary vocabulary, string[] ruleNames)
 {
     if (s0.Get() == null)
     {
         return string.Empty;
     }
     DFASerializer serializer = new DFASerializer(this, vocabulary, ruleNames, atnStartState.atn);
     return serializer.ToString();
 }
Beispiel #7
0
 public virtual string ToString(IVocabulary vocabulary)
 {
     if (s0.Get() == null)
     {
         return string.Empty;
     }
     DFASerializer serializer = new DFASerializer(this, vocabulary);
     return serializer.ToString();
 }
Beispiel #8
0
 public virtual string ToString(string[] tokenNames)
 {
     if (s0.Get() == null)
     {
         return string.Empty;
     }
     DFASerializer serializer = new DFASerializer(this, tokenNames);
     return serializer.ToString();
 }
Beispiel #9
0
        public String ToString(IVocabulary vocabulary)
        {
            if (s0 == null)
            {
                return "";
            }

            DFASerializer serializer = new DFASerializer(this, vocabulary);
            return serializer.ToString();
        }