public object VisitAlternationList(AlternationListNode alt) { tabWrite("Alt"); level++; alt.Nodes.Select(n => n.Visit(this)).ToList(); level--; return(null); }
public Tuple <State, State> VisitAlternationList(AlternationListNode alt) { if (alt.Nodes.Count == 0) { throw new Exception("This should never happen, but if it did the start and stop starts would not get added to the list."); } var start = new State(); var stop = new State(); foreach (var ch in alt.Nodes.Select(n => n.Visit(this))) { addLambda(start, ch.Item1); addLambda(ch.Item2, stop); } return(new Tuple <State, State>(start, stop)); }
public AstNode VisitAlternationList(AlternationListNode alt) { return(new AlternationListNode(alt.Nodes.Select(n => n.Visit(this)))); }
public T VisitAlternationList(AlternationListNode alt) { return(default(T)); }