News for hackers. Stuff that matters.
Re:Show HN: Programming is Now Two-Dimensional by sharemywin on Wednesday June 21, 2017 @12:53PM (#14605532)
A JSON object like:

{

"title" : "Jack and Ada at BCHS",

"visitors": {

  "mozilla": 802

 }
}

Can be written in Tree Notation like this:

title Jack and Ada at BCHS

visitors

mozilla 802

couldn't this be parsed as:

{

"title Jack" : "and Ada at BCHS",

"visitors": {

  "mozilla": 802

 }

}
Re:Show HN: Programming is Now Two-Dimensional by breck on Wednesday June 21, 2017 @01:17PM (#14605821)
It could. TN doesn't have a notion of "words", so ETNs are free to parse each line as they see fit. In my experience, it's best to stick to the convention of words, separated by a single space, and for the first word to be "head". Also works great for the first word to be indicate the node type.