Advertisement
Guest User

ONE

a guest
May 28th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. -
  2. ONE
  3. -
  4. -
  5. Overview
  6. -
  7. -
  8. ONE is a system for encoding and organizing data.
  9. -
  10. -
  11. System
  12. -
  13. -
  14. A ONE Document is composed of ONE Elements.
  15.  
  16. Each Element contains a string of characters. Elements may be arranged in any order,
  17. and act as a parent to an indefinite number of other Elements, which themselves may be
  18. arranged in any order.
  19. -
  20. -
  21. Language
  22. -
  23. -
  24. Elements
  25. -
  26. -
  27. An Element is declared with a lone '-' on a line, and terminated with a lone '-' on
  28. a lower line. Both '-'s must be indented the same amount.
  29.  
  30. There must be at least one line in between the declaring and terminating lines.
  31. Each line in between must be indented one space further than the declaring and
  32. terminating lines. Every character following the first indent will be encoded as
  33. literal text within the Element.
  34.  
  35. Example 1:
  36.  
  37. -
  38.  
  39. -
  40.  
  41. Example 2:
  42.  
  43. -
  44. Data
  45. -
  46.  
  47. Example 3:
  48.  
  49. -
  50. Data
  51. More Data
  52. -
  53. -
  54. -
  55. Sibling Elements
  56. -
  57. -
  58. Elements may be placed next to each other as siblings. No whitespace is permitted
  59. between them.
  60.  
  61. Example:
  62.  
  63. -
  64. Element 1
  65. -
  66. -
  67. Element 2
  68. -
  69. -
  70. -
  71. Child Elements
  72. -
  73. -
  74. Elements may be nested within one another. To nest one Element within another,
  75. place it beneath the intended parent and indent it one space further.
  76.  
  77. Elements that are not nested inside of other Elements must not be indented.
  78.  
  79. Example:
  80.  
  81. -
  82. Parent Element
  83. -
  84. -
  85. Child Element
  86. -
  87. -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement