コード例 #1
0
        public override void EnterIfstmt([NotNull] ProfaneParser.IfstmtContext context)
        {
            var conditionalExpression = ResolveConditionalExpression(context.conditionExpr());

            this.Output += $"if({conditionalExpression})";
            this.Output += "{\n";
        }
コード例 #2
0
 public override void ExitIfstmt([NotNull] ProfaneParser.IfstmtContext context)
 {
     this.Output += "}\n";
 }
コード例 #3
0
 /// <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)
 {
 }