예제 #1
0
 public override string ToString() => "BEGIN " + TokenText(Token.Type) + "\n  " + String.Join("\n", Stmt.ToString()) + "END " + TokenText(Token.Type);
예제 #2
0
 public override string ToString() => "BEGIN LOCK " + Key + "\n  " + String.Join("\n", Stmt.ToString()) + "END LOCK";
예제 #3
0
 public override string ToString() => "FINALLY\n  " + Stmt.ToString().Replace("\n", "\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";
예제 #5
0
 public override string ToString() => "REPEAT\n  " + Stmt.ToString().Replace("\n", "\n  ") + "\nUNTIL " + Cond.ToString();
예제 #6
0
 public override string ToString() => "CATCH" + "\n  " + Stmt.ToString().Replace("\n", "\n  ");
예제 #7
0
 public override string ToString() => Token.Type + "\n  " + Stmt?.ToString().Replace("\n", "\n  ");
예제 #8
0
 public override string ToString() => Body.ToString();
예제 #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";
예제 #10
0
 public override string ToString() => "CASE " + Cond.ToString() + "\n  " + Stmt.ToString().Replace("\n", "\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";
예제 #12
0
 public override string ToString() => "FOREACH " + (ForDecl is ImpliedVarDecl ? "VAR " : "") + ForDecl.ToString() + " IN " + Expr + "\n  " + Stmt.ToString().Replace("\n", "\n  ") + "\nEND FOREACH";
예제 #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";
예제 #14
0
 public override string ToString() => "BEGIN USING " + (Decl != null ? Decl.ToString() : Expr.ToString()) + "\n  " + String.Join("\n", Stmt.ToString()) + "END USING";
예제 #15
0
 public override string ToString() => Token.Type + " " + Name + " AS " + Type + (When != null ? "WHEN " + When : "") + "\n  " + Stmt?.ToString().Replace("\n", "\n  ");
예제 #16
0
 public override string ToString() => "BEGIN FIXED " + Decl + "\n  " + String.Join("\n", Stmt.ToString()) + "END FIXED";
예제 #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();
예제 #18
0
 public override string ToString()
 {
     return("{|" + ParamsAsString() + "|" + Body.ToString() + "}");
 }
예제 #19
0
 public override string ToString() => "DO WHILE " + Cond.ToString() + "\n  " + Stmt.ToString().Replace("\n", "\n  ") + "\nENDDO";