public override ITerm VisitIfThenElse([NotNull] TaplParser.IfThenElseContext context) { var t = context.term(); return(new If(Visit(t[0]), Visit(t[1]), Visit(t[2]))); }
/// <summary> /// Visit a parse tree produced by the <c>IfThenElse</c> /// labeled alternative in <see cref="TaplParser.term"/>. /// <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 VisitIfThenElse([NotNull] TaplParser.IfThenElseContext context) { return(VisitChildren(context)); }