Esempio n. 1
0
 public override string ToString() => "BEGIN " + TokenText(Token.Type) + "\n  " + String.Join("\n", Stmt.ToString()) + "END " + TokenText(Token.Type);
Esempio n. 2
0
 public override string ToString() => "BEGIN LOCK " + Key + "\n  " + String.Join("\n", Stmt.ToString()) + "END LOCK";
Esempio n. 3
0
 public override string ToString() => "FINALLY\n  " + Stmt.ToString().Replace("\n", "\n  ");
Esempio n. 4
0
 public override string ToString() => "BEGIN SEQUENCE\n  " + Stmt.ToString().Replace("\n", "\n  ") +
 (Recover != null ? "RECOVER USING " + Name + "\n  " + String.Join("\n", Recover.ToString()) : "") +
 (Finally != null ? "FINALLY\n  " + String.Join("\n", Finally.ToString()) : "") +
 "END SEQUENCE";
Esempio n. 5
0
 public override string ToString() => "REPEAT\n  " + Stmt.ToString().Replace("\n", "\n  ") + "\nUNTIL " + Cond.ToString();
Esempio n. 6
0
 public override string ToString() => "CATCH" + "\n  " + Stmt.ToString().Replace("\n", "\n  ");
Esempio n. 7
0
 public override string ToString() => Token.Type + "\n  " + Stmt?.ToString().Replace("\n", "\n  ");
Esempio n. 8
0
 public override string ToString() => Body.ToString();
Esempio n. 9
0
 public override string ToString() => "DO CASE\n" + String.Join("\n", Array.ConvertAll(Cases, (x) => x.ToString())) + (Otherwise != null ? "\nOTHERWISE\n  " + Otherwise.ToString().Replace("\n", "\n  ") : "") + "\nEND CASE";
Esempio n. 10
0
 public override string ToString() => "CASE " + Cond.ToString() + "\n  " + Stmt.ToString().Replace("\n", "\n  ");
Esempio n. 11
0
 public override string ToString() => "IF " + Cond.ToString() + "\n  " + StmtIf.ToString().Replace("\n", "\n  ") + (StmtElse != null ? "\nELSE\n  " + StmtElse.ToString().Replace("\n", "\n  ") : "") + "\nENDIF";
Esempio n. 12
0
 public override string ToString() => "FOREACH " + (ForDecl is ImpliedVarDecl ? "VAR " : "") + ForDecl.ToString() + " IN " + Expr + "\n  " + Stmt.ToString().Replace("\n", "\n  ") + "\nEND FOREACH";
Esempio n. 13
0
 public override string ToString() => "FOR " + (AssignExpr?.ToString() ?? ((ForDecl is ImpliedVarDecl ? "VAR " : "LOCAL ") + ForDecl.ToString())) + " " + Dir.Type + " " + Final + (Step != null ? " STEP " + Step : "") + "\n  " + Stmt.ToString().Replace("\n", "\n  ") + "\nEND FOR";
Esempio n. 14
0
 public override string ToString() => "BEGIN USING " + (Decl != null ? Decl.ToString() : Expr.ToString()) + "\n  " + String.Join("\n", Stmt.ToString()) + "END USING";
Esempio n. 15
0
 public override string ToString() => Token.Type + " " + Name + " AS " + Type + (When != null ? "WHEN " + When : "") + "\n  " + Stmt?.ToString().Replace("\n", "\n  ");
Esempio n. 16
0
 public override string ToString() => "BEGIN FIXED " + Decl + "\n  " + String.Join("\n", Stmt.ToString()) + "END FIXED";
Esempio n. 17
0
 public override string ToString() => "TRY\n  " + Stmt.ToString().Replace("\n", "\n  ") + (Catches != null ? String.Join("\n", Array.ConvertAll(Catches, (x) => x.ToString())) : "") + Finally?.ToString();
Esempio n. 18
0
 public override string ToString()
 {
     return("{|" + ParamsAsString() + "|" + Body.ToString() + "}");
 }
Esempio n. 19
0
 public override string ToString() => "DO WHILE " + Cond.ToString() + "\n  " + Stmt.ToString().Replace("\n", "\n  ") + "\nENDDO";