4 ms·
I am unsure who this is for. An argument for this seems to be that "delimiter-first" code is easier to machine parse but at the same time author says that tools
by reportgunner 4y ago
I am unsure who this is for. An argument for this seems to be that "delimiter-first" code is easier to machine parse but at the same time author says that tools can be made to overcome hard to parse code.
The a) b) c) and 1) 2) 3) argument seems just confused - those are not delimiters.
The author claims that we don't need a terminator - but what do you do in case of two subsequent sequences ?
Author says that YAML is "delimiter-first", yet there is no \n at the beginning of a YAML file.
In the end it all comes down to putting an extra comma in front of everything you write at which point you might as well just parse everything backwards to achieve the same result.
Once I take out all the circular logic out of the theory I simply fail to see any benefits of this approach.
- auggierose 4y agoYup, it is a very confused text without any real point to it. Edit: Have to revise that, it made me rethink something: maybe I should throw endOfLine as a token out of my parser generator engine, and instead introduce a startOfLine token.
- Fellshard 4y agoIt certainly can be a delimiter, and indeed is often how we delimit sequences in normal language texts. I've been experimenting with how this type of syntax could be used to transcribe Lisps, following on from the like of 'Wisp'. The results are fairly interesting, in my opinion, though I've mostly been fiddling with the feeling of writing and reading so far, rather than actually settling on a syntactic combination that's coherent. I'm using bullets rather than numbered lists, since sequence is basically always implied in code context. https://gist.github.com/armstnp/bb2a88bcb053d2195f42c60a0cf15a65 https://gist.github.com/armstnp/bb2a88bcb053d2195f42c60a0cf1... https://gist.github.com/armstnp/3fab1a0933c0da273525f77799def36a https://gist.github.com/armstnp/3fab1a0933c0da273525f77799de...
- ryukafalz 4y agoOh that first example is really interesting! I wouldn't have thought to use bullet points in source code, but it gives it sort of a "document" feel.
- civilized 4y ago> The a) b) c) and 1) 2) 3) argument seems just confused - those are not delimiters. Hmm... I don't know about that. They fit many of the definitions I can find online: > A delimiter is a sequence of one or more characters for specifying the boundary between separate, independent regions in plain text, mathematical expressions or other data streams. -- https://en.wikipedia.org/wiki/Delimiter https://en.wikipedia.org/wiki/Delimiter > a character that marks the beginning or end of a unit of data -- https://www.merriam-webster.com/dictionary/delimiter https://www.merriam-webster.com/dictionary/delimiter
- reportgunner 4y agoFair point, I might be wrong there. Intuitively I would think of them as indices rather than delimiters.
- civilized 4y agoI thought the same way before looking into it. The only context I ever see the word delimiter in is "X-delimited values", where X = comma, pipe, tab, etc.
- wizofaus 4y agoSo the ) is the delimiter between the list counter and the item text, but the counter itself has meaning (indicating order/priority/importance) so I'd never consider that part of the delimiter.
- avidphantasm 4y agoYeah, is it just to make the grammar definition simpler?