Beispiel #1
0
 public static GotoTable From(GotoTableDefinition definition) =>
 new GotoTable(definition.ToDictionary(
                   @goto => new StateIndexAndLabel(@goto.From, @goto.Symbol.Value),
                   @goto => @goto.To));
Beispiel #2
0
 public static string ToString(GotoTableDefinition @goto) =>
 $"GOTO{Environment.NewLine}{ToString((TransitionTable<int, NonTerminal, int>)@goto)}";