Ejemplo n.º 1
0
 public override void RenderText_Value(ILTextCanvas canvas)
 {
     canvas.AppendToLine("{");
     canvas.AppendNewline();
     canvas.Indent();
     statement.RenderText_StatementEX(canvas);
     canvas.Dedent();
     canvas.AppendToNewline("}");
 }
Ejemplo n.º 2
0
        public override void RenderText_Statement(ILTextCanvas canvas)
        {
            canvas.AppendNewline();

            canvas.AppendToLine("if(false)");
            canvas.AppendToNewline("{");
            canvas.Indent();
            entry_label.RenderText_Statement(canvas);
            statement.RenderText_StatementEX(canvas);
            canvas.Dedent();
            canvas.AppendToNewline("}");
        }
Ejemplo n.º 3
0
        public override void RenderText_Statement(ILTextCanvas canvas)
        {
            canvas.AppendNewline();

            canvas.AppendToLine("while(");
            condition.RenderText_ValueEX(canvas);
            canvas.AppendToLine(")");

            canvas.AppendToNewline("{");
            canvas.Indent();
            while_statement.RenderText_StatementEX(canvas);
            canvas.Dedent();
            canvas.AppendToNewline("}");
        }
Ejemplo n.º 4
0
        public override void RenderText_Statement(ILTextCanvas canvas)
        {
            canvas.AppendNewline();

            canvas.AppendToLine("switch(");
            input.RenderText_ValueEX(canvas);
            canvas.AppendToLine(")");

            canvas.AppendToNewline("{");
            canvas.Indent();
            cases.Process(c => c.RenderText_Case(canvas));

            if (default_statement != null)
            {
                canvas.AppendToNewline("default case:");
                canvas.Indent();
                default_statement.RenderText_StatementEX(canvas);
                canvas.AppendToNewline("break;");
                canvas.Dedent();
            }
            canvas.Dedent();
            canvas.AppendToNewline("}");
        }
Ejemplo n.º 5
0
        public override void RenderText_Statement(ILTextCanvas canvas)
        {
            canvas.AppendNewline();

            canvas.AppendToLine("if(");
            condition.RenderText_ValueEX(canvas);
            canvas.AppendToLine(")");

            canvas.AppendToNewline("{");
            canvas.Indent();
            if_true_statement.RenderText_StatementEX(canvas);
            canvas.Dedent();
            canvas.AppendToNewline("}");

            if (HasElse())
            {
                canvas.AppendToNewline("else");
                canvas.AppendToNewline("{");
                canvas.Indent();
                if_false_statement.RenderText_StatementEX(canvas);
                canvas.Dedent();
                canvas.AppendToNewline("}");
            }
        }