Re:Challenging LR Parsing
by sreekotay on Wednesday September 16, 2020 @02:40PM
(#24495898)
That was the thought: is there some non-BCPL like grammar that makes sense.
Like... (not fully formed thought here) JSON is easy but verbose - YAML is nightmare by cleaner. Maybe we're looking at it wrong....
[ Parent
| on HN ]
As a nearby comment observes, this leads to s-expressions.
The connection between APL syntax and s-expressions is surprisingly close. Start with prefix notation and right-associativity, add grouping parens, and you have something that looks like lisp. The Nial language is an outright fusion of the two that's fun and enlightening to play with.
https://en.wikipedia.org/wiki/Nial https://github.com/danlm/QNial7