Exemplo n.º 1
0
        public override void 还原_C_源代码(StringBuilder sb)
        {
            sb.Append("for ( ");

            for (int i = 0; i < this.小括号表达式s.Length; i++)
            {
                表达式 express = this.小括号表达式s[i];

                if (express != null)
                {
                    express.还原_C_源代码(sb);
                }

                if (i < 2)
                {
                    sb.Append(";");
                }
            }
            //this.for_表达式.还原_C_源代码(sb);

            sb.Append(" )\r\n{\r\n");

            this.子句.还原_C_源代码(sb);

            sb.Append("}\r\n");
        }
Exemplo n.º 2
0
        public override void 还原_C_源代码(StringBuilder sb)
        {
            sb.Append("return ");

            if (this.返回值 != null)
            {
                返回值.还原_C_源代码(sb);
            }

            sb.Append(";\r\n");
        }