Ejemplo n.º 1
0
        internal static string Print <T>(RawDfa <T> dfa, bool useStatefulNumbers = false)
        {
            var ctx     = new RawDfaContext <T>(dfa, useStatefulNumbers);
            var printer = new CompactPrinter <int, T>(ctx);

            return(printer.Print());
        }
Ejemplo n.º 2
0
        public static string Print <T>(DfaState <T> state, bool useStateNumbers = false)
        {
            var ctx     = new DfaContext <T>(state, useStateNumbers);
            var printer = new CompactPrinter <DfaState <T>, T>(ctx);

            return(printer.Print());
        }
Ejemplo n.º 3
0
        public static string Print <T>(Nfa <T> nfa, int state, bool useStateNumbers = false)
        {
            var ctx     = new NfaContext <T>(nfa, state, useStateNumbers);
            var printer = new CompactPrinter <int, T>(ctx);

            return(printer.Print());
        }