Пример #1
0
 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);
     });
 }
Пример #2
0
 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);
     });
 }