コード例 #1
0
        public override string GetCode()
        {
            System.Text.StringBuilder code = new System.Text.StringBuilder();

            code.AppendLine(String.Format("if ({0}) {{", slot.GetCode()));
            code.AppendLine(spine.GetCode());
            code.AppendLine("}");

            return(code.ToString());
        }
コード例 #2
0
        public override string GetCode()
        {
            System.Text.StringBuilder code = new System.Text.StringBuilder();

            code.AppendLine("do {");
            code.AppendLine(consequenceSpine.GetCode());
            code.AppendLine(String.Format("}} while ({0});", slot.GetCode()));

            return(code.ToString());
        }
コード例 #3
0
        public override string GetCode()
        {
            System.Text.StringBuilder code = new System.Text.StringBuilder();

            code.AppendLine(String.Format("if ({0}) {{", slot.GetCode()));
            code.AppendLine(consequenceSpine.GetCode());
            code.AppendLine("}");
            code.AppendLine("else {");
            code.AppendLine(alternativeSpine.GetCode());
            code.AppendLine("}");

            return(code.ToString());
        }