3 ms·
I've played with operator precedence parsing earlier this year to produce an infix implementation for TXR Lisp. Documentation entry point: https://www.nongnu.o
by kazinator 10mo ago
I've played with operator precedence parsing earlier this year to produce an infix implementation for TXR Lisp.
Documentation entry point: https://www.nongnu.org/txr/txr-manpage.html#N-BEB6083E https://www.nongnu.org/txr/txr-manpage.html#N-BEB6083E
I may have invented something new, which I called "Precedence Demotion". I did some research regarding prior art for this exact thing but didn't find it.
https://www.nongnu.org/txr/txr-manpage.html#N-89023B87 https://www.nongnu.org/txr/txr-manpage.html#N-89023B87
LOL, I see I have a bug in the quadratic-roots example (not related to the above). The example has correct results for the given inputs because a is 1.
It's ironic: you add infix to Lisp and, wham, you make a bugeroo because of infix that would never happen in prefix, right in the documentation. Like a poetic justice punishment.