Arrow Notes Notation (ANN) is a lightweight and human-readable serialization format designed to represent structured data intuitively. With its distinctive arrow-based syntax and increasing dashes for deeper nesting, ANN simplifies data representation for configuration files, documentation, and human-readable data exchange. ANN is inspired by my own analog note-taking methodology.
Arrows (->) are the foundational elements of ANN.
They mark the start of a new data element and visually convey
its nesting depth. Arrows are accompanied by an increasing number
of dashes (-) as you descend deeper into the data structure,
providing a clear indication of hierarchy.
Indentation in ANN visually depicts nested elements.
It consists of a pipe (|) character followed
by a dash (-), forming a consistent pattern
(|->, |-->, |--->,
and so on) that enhances readability. This is meant to signify a
bent arrow ↳.
Indentation is fundamental to recognizing the hierarchical
relationships within the data.
A pipe must always line up with the first character of the parent
element. For example:
-> person |-> name = "Alice"
Key-value pairs form the core of ANN's data representation. They consist of a key and its associated value, separated by an equal sign (=). There are no spaces around the equal sign, preserving the format's clean and succinct nature.
->) signify the start of a new data element.-) indicates the nesting level of objects and values.=)." ").true or false.-> name = "John" -> age = 30 -> is_student = true
-> person
|-> name = "Alice"
|-> age = 25
|-> address
|--> street = "123 Main St"
|--> city = "EONville"
-> numbers = 1 2 3 4 5
-> data
|-> category
|--> type = "A"
|--> items = item1 item2 item3
|-> settings
|-> enable_feature = true
|-> threshold = 0.5
Arrow Notes Notation (ANN) introduces an intuitive approach to structured data representation. Through its arrow-based syntax with increasing dashes, ANN enhances human comprehension, making it a valuable choice for situations demanding readability and quick data understanding.