public Statements COMPOUND(Statements statements) { Statements statement = new Statements(); statement.IsCompound = true; statement.Append(statements); return this; }
public Statements IF(string exp, Statements sent1, Statements sent2) { AppendLine($"if({exp})"); Append(sent1, 1); AppendLine("else"); Append(sent2, 1); return this; }
public Statements WHILE(string exp, Statements sent) { AppendLine($"while({exp})"); Append(sent, 1); return this; }
public Statements IF(string exp, Statements sent) { AppendLine($"if({exp})"); Append(sent, 1); return this; }
public Statements FOREACH(string exp1, string exp2, Statements sent) { AppendLine($"foreach({exp1} in {exp2})"); Append(sent, 1); return this; }