private static void FoldName <V>(Data <V> d, AutomataName nameValue, Label foldName) { d.AddAction(() => { d.Emit.MarkLabel(foldName); nameValue.OnFound(d.Emit); d.Emit.Branch(d.Start); }); }
static void FinishName <V>(Data <V> d, AutomataName nameValue, Label onMatchChar) { d.AddAction(() => { d.Emit.MarkLabel(onMatchChar); nameValue.OnFound(d.Emit); d.DoReturn(d.Emit); }); }