3 ms·
If you have lots of math expressions to write, you can use an infix reader in Common Lisp. It has a programmable reader. Such a thing - reading infix expression
by lispm 8y ago
If you have lots of math expressions to write, you can use an infix reader in Common Lisp. It has a programmable reader. Such a thing - reading infix expressions - was already a standard feature of the MIT Lisp Machine OS in the 80s.
In Lisp you actually don't write parse trees. Lisp uses a serialized hierarchical data format of a tokenizer. S-expressions are not Lisp syntax trees, but a data format.
- qop 8y agoI relish comments like these from Lisp fans that actually KNOW Lisp. Someday we'll resurrect it all... Reader macros blew my mind when I first read about them. Being able to change the very laws of the universe from within my simple little programs... Insane!