4 ms·
Right, so parenthesized notation is basically an "AST dump" of a natural language sentence. But when it's dumped to paper, the end result is a visual represent
by int_19h 9y ago
Right, so parenthesized notation is basically an "AST dump" of a natural language sentence.
But when it's dumped to paper, the end result is a visual representation, which still needs to be parsed to consume again (and have the AST inside your brain) - you just have to do it according to the rules of that parenthesized notation.
So, when you see a sentence in this notation, do you find that it takes you less time to read than the original notation, or more?
For me, it's definitely more. And I think the reason why this is widely used in linguistics is not because it's faster, but because 1) different languages have different syntax parsing rules, and having a single language-agnostic uniform notation is desirable, and 2) unlike normal syntax, this notation is completely unambiguous even in corner cases - in particular, it can explicitly represent arbitrary nesting without ambiguity in a way that commas do not.