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");
        }
예제 #2
0
 public abstract void Apply(ParserConcatenation parser);