3 ms·
Without any whitespace rules I wouldn't really call this human-readable format. The canonical serialization of a tree is without any whitespace and unlike json/
by zokier 4y ago
Without any whitespace rules I wouldn't really call this human-readable format. The canonical serialization of a tree is without any whitespace and unlike json/xml/sexpr you can not reformat the document for human readability because any added whitespace changes the content.
- djedr 4y agoPlain Jevko is a notch below JSON/XML/S-expr -- it's not really a format, but a syntax that can be leveraged to build a format. This is where the rules for whitespace would be specified. These can then be taken advantage of by tools to reformat, etc. The simplest format that I came up with and should specify next that will most likely do what you want is Easy Jevko. For details see this rabbit hole: https://news.ycombinator.com/item?id=33337098 https://news.ycombinator.com/item?id=33337098 For an alternative minimal syntax which is based around whitespace check out: * https://ogdl.org/ https://ogdl.org/ * https://treenotation.org/ https://treenotation.org/