public override void EnterIfstmt([NotNull] ProfaneParser.IfstmtContext context) { var conditionalExpression = ResolveConditionalExpression(context.conditionExpr()); this.Output += $"if({conditionalExpression})"; this.Output += "{\n"; }
public override void ExitIfstmt([NotNull] ProfaneParser.IfstmtContext context) { this.Output += "}\n"; }
/// <summary> /// Exit a parse tree produced by <see cref="ProfaneParser.ifstmt"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitIfstmt([NotNull] ProfaneParser.IfstmtContext context) { }