Beispiel #1
0
        public static string PrintDot <T>(DfaState <T> state, bool useStateNumbers = false)
        {
            var ctx     = new DfaContext <T>(state, useStateNumbers);
            var printer = new DotPrinter <DfaState <T>, T>(ctx, "dfa");

            return(printer.Print());
        }
Beispiel #2
0
        internal static string PrintDot <T>(RawDfa <T> rawDfa, bool useStateNumbers = false)
        {
            var ctx     = new RawDfaContext <T>(rawDfa, useStateNumbers);
            var printer = new DotPrinter <int, T>(ctx, "rawdfa");

            return(printer.Print());
        }
Beispiel #3
0
        public static string PrintDot <T>(Nfa <T> nfa, int state, bool useStateNumbers = false)
        {
            var ctx     = new NfaContext <T>(nfa, state, useStateNumbers);
            var printer = new DotPrinter <int, T>(ctx, "nfa");

            return(printer.Print());
        }