Advertisement
Longor1996

PTDS

Jun 6th, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.22 KB | None | 0 0
  1. // PlainTextDataStructure
  2.  
  3.  
  4. // this is a empty block with the name 'hello'
  5. "hello" {
  6.  
  7. }
  8.  
  9. // this is a non-empty block with the name 'hello2'
  10. "hello2" {
  11.  
  12.  // this is a key/value element (name/key is 'a', value is 'testomatiko')
  13.  "a" "testomatiko";
  14.  
  15.  // this is a array element (name is 'b', values are 'value0','value1' and 'value2')
  16.  "b" ["value0","value1","value2"]
  17.  
  18.  // this is a block-in-a-block with the name 'hello3'
  19.  "hello3" {
  20.  
  21.   /* This key/value-element is commented out by a block-comment
  22.   "k" "value";
  23.   */
  24.  
  25.   // This is a line-comment!
  26.  
  27.   // Here we have 3 arrays called 'a0','a1' and 'a2', each with the values '0','1','2','3' and '4'.
  28.   "a0" ["0","1","2","3","4"]
  29.   "a1" ["0","1","2","3","4"]
  30.   "a2" ["0","1","2","3","4"]
  31.  
  32.   // another block in a block
  33.   "hello4"
  34.   {
  35.    // another block in a block
  36.    "hello5"
  37.    {
  38.     // another block in a block
  39.     "hello6"
  40.     {
  41.      // another block in a block
  42.      "hello7"
  43.      {
  44.      
  45.      }
  46.      // this block named 'hello4' will override (and thus delete) the other block called 'hello4'.
  47.      // that means you can't have blocks with the same name in the same block.
  48.      "hello4"
  49.      {
  50.      
  51.      }
  52.     }
  53.    }
  54.   }
  55.  }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement