Пример #1
0
 /// <summary>
 /// Visit a parse tree produced by <see cref="LeafParser.var_ass"/>.
 /// <para>
 /// The default implementation returns the result of calling <see cref="AbstractParseTreeVisitor{Result}.VisitChildren(IRuleNode)"/>
 /// on <paramref name="context"/>.
 /// </para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 /// <return>The visitor result.</return>
 public virtual Result VisitVar_ass([NotNull] LeafParser.Var_assContext context)
 {
     return(VisitChildren(context));
 }
Пример #2
0
 public AssignmentNode(LeafParser.Var_assContext ctx)
 {
     Line    = ctx.Start.Line;
     _lValue = ValueNode.Create(ctx.value(0));
     _rValue = ValueNode.Create(ctx.value(1));
 }
Пример #3
0
 public static Value Compile(this LeafParser.Var_assContext a, in LocalCompilationContext ctx)