Ejemplo n.º 1
0
    public override void EnterLink_stmt([NotNull] GravisParser.Link_stmtContext context)
    {
        var pair  = context.dotted_name();
        var left  = getDottedName(pair[0]);
        var right = getDottedName(pair[1]);

        left.outputs.Add(right);
        right.inputs.Add(left);
    }
Ejemplo n.º 2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="GravisParser.link_stmt"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitLink_stmt([NotNull] GravisParser.Link_stmtContext context)
 {
 }