| ▲ | HansP958 11 hours ago | |||||||
The concept of "inverse parentheses" that unbundle operators is brilliant! The tokenizer hack (friendliness score by parenthesis depth, inspired by Python INDENT/DEDENT) + precedence climbing for infinite levels is elegant – parsing solved without convoluted recursive grammar. kellett I love the twist: reversing the friendly levels gives you a classic parser, and it opens up crazy experiments like whitespace weakening. Have you tested it on non-arithmetic ops (logical/bitwise) or more complex expressions like ((()))? | ||||||||
| ▲ | istjohn 11 hours ago | parent | next [-] | |||||||
It's not just brilliant, it's earth-shattering. | ||||||||
| ▲ | codegladiator 9 hours ago | parent | prev [-] | |||||||
llm generated comment | ||||||||
| ||||||||