Advertisement
Guest User

ProjectXV4 - easyd report

a guest
Jan 16th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
D 0.80 KB | None | 0 0
  1. report<>;
  2.  
  3. Creates report flags.
  4.  
  5.  
  6. Example :
  7.     void main() {
  8.         report<
  9.             __r
  10.             writeln("Hello World!");
  11.             __r
  12.         >;
  13.     }
  14.     // Output
  15.     /*
  16.         #1 report executed!
  17.         Hello World!
  18.         #2 report executed!
  19.     */
  20. Example 2:
  21.     void main() {
  22.         report<
  23.             __rBEGIN
  24.             writeln("Hello World!");
  25.             __rEND
  26.         >;
  27.     }
  28.     // Output
  29.     /*
  30.         BEGIN report executed!
  31.         Hello World!
  32.         END report executed!
  33.     */
  34. Example 3:
  35.     void main() {
  36.         int a = 5;
  37.         int b = 10;
  38.         int c = a + b;
  39.         report<
  40.             __va,b,c
  41.         >;
  42.     }
  43.     // Output
  44.     /*
  45.         a is '5', b is '10', c is '15'
  46.     */
  47. Example 4:
  48.     void main() {
  49.         report<
  50.             __rONE
  51.             __r
  52.             writeln("Hello World!");
  53.             __r
  54.             __rFOUR
  55.         >;
  56.     }
  57.     // Output
  58.     /*
  59.         ONE report executed!
  60.         #2 report executed!
  61.         Hello World!
  62.         #3 report executed!
  63.         FOUR report executed!
  64.     */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement