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()); }
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()); }
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()); }