public override void Apply(ParserConcatenation parser) { parser.FirstParser.Visit(this); parser.SecondParser.Visit(this); var secondVariantDestinationNode = FindNodeById(_ids.Pop()); var firstVariantDestinationNode = FindNodeById(_ids.Pop()); var sourceNode = CreateNode("ConcatenationNode(+)", VisitorNode.VisitorNodeType.Combinator); CreateLink(sourceNode, firstVariantDestinationNode, "1"); CreateLink(sourceNode, secondVariantDestinationNode, "2"); }
public abstract void Apply(ParserConcatenation parser);