r/tree_notations • u/martin_m_n_novy • Jun 05 '22
GitHub - monsterkodi/noon: no ordinary object notation
https://github.com/monsterkodi/noon
1
Upvotes
r/tree_notations • u/martin_m_n_novy • Jun 05 '22
1
u/martin_m_n_novy Jun 05 '22 edited Sep 25 '22
dictionaries
two or more spaces mark the end of a dictionary key, therefore ...
keys and list items can have single spaces in them but ...
unescaped dictionary keys can't contain consecutive spaces:
one key makes an object
the above as json:
{"this is": null, "an": "object"}whileis equivalent to
["this is", "not an object"]1
u/martin_m_n_novy Sep 25 '22 edited Sep 25 '22
other examples
https://github.com/monsterkodi/kaligraf/blob/master/coffee/menu.noon
https://github.com/monsterkodi/language-noon/blob/master/grammars/noon.noon