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