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()); }
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()); }
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()); }