Advertisement
Guest User

ONE Language

a guest
Apr 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.72 KB | None | 0 0
  1. -
  2. ONE Language
  3. -
  4. -
  5. Philosophy
  6. -
  7. -
  8. The ONE language is a syntax for encoding ONE elements.
  9.  
  10. A unit of text written in the ONE language is referred to as a ONE document.
  11. -
  12. -
  13. Principles
  14. -
  15. -
  16. Syntax
  17. -
  18. -
  19. The ONE language requires three unique sequences of characters to be defined: the
  20. terminating sequence, the breaking sequence, and the nesting sequence. It is not
  21. permitted for the sequences to be defined such that there may be any instances
  22. where two or more sequences conflict at a given location.
  23.  
  24. The ONE language is composed entirely of ONE element definitions. No characters are
  25. permitted outside of element definitions.
  26.  
  27. An element definition begins with the terminating sequence, followed by the
  28. breaking sequence. The breaking sequence may either be followed by the nesting
  29. sequence or by the terminating sequence. If it is followed by the terminating
  30. sequence, said terminating sequence will end the element definition. If it is
  31. followed by the nesting sequence, then the nesting sequence may be followed by any
  32. sequence of characters as long as the breaking sequence does not occur within it.
  33. This sequence is referred to as the encoded sequence. The encoded sequence is
  34. followed by the breaking sequence, which must be followed either with the nesting
  35. sequence which continues the element definition, or by the terminating sequence
  36. which ends the element definition. If an element definition precedes another
  37. element definition, the final terminating sequence within it must be followed by
  38. the breaking sequence.
  39.  
  40. Element definitions may be nested within one another. If an element definition is
  41. nested within another element definition, the child element definition must be
  42. placed directly after its parent. For every terminating sequence and for every
  43. nesting sequence which immediately precedes an encoded sequence within the element
  44. definition, one instance of the nesting sequence must be placed between the
  45. breaking sequence that precedes said sequence and said sequence for every level the
  46. element definition is nested.
  47. -
  48. -
  49. Semantics
  50. -
  51. -
  52. The encoded data will begin as an element with no parent and no content referred to
  53. as the document element.
  54.  
  55. Every element definition with no parent will encode an element as a child of the
  56. document element. Every element definition with a parent will encode an element as
  57. a child of the element defined by its parent element definition.
  58.  
  59. If an element definition contains no encoded sequences, the element encoded by it
  60. will have no content.
  61.  
  62. If an element definition does contain encoded sequences, then the content encoded
  63. into elements defined by element definitions will consist of the content of each
  64. encoded sequence within the respective element definition, each with the exception
  65. of the content last occurring encoded sequence within the respective element
  66. definition followed by an instance of the breaking sequence, concatenated in the
  67. order in which the respective encoded sequences occur within the respective element
  68. definition.
  69.  
  70. The order in which elements defined by element definitions are arranged within
  71. their parent element shall correspond to the order in which the definitions that
  72. defined them occur.
  73. -
  74. -
  75. Encoding
  76. -
  77. -
  78. Encoding a ONE document begins with a single element. If the element in question
  79. has no content, it will become the document element. If the element in question has
  80. content, it will be assigned a parent with no content, which will become the
  81. document element.
  82. -
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement