3 ms·
It's pretty easy to embed an infix parser in Lisp if that's the only thing standing between you and happiness. e.g.: http://www.flownet.com/gat/lisp/parcil.li
by lisper 8y ago
It's pretty easy to embed an infix parser in Lisp if that's the only thing standing between you and happiness. e.g.:
http://www.flownet.com/gat/lisp/parcil.lisp http://www.flownet.com/gat/lisp/parcil.lisp
See:
http://www.flownet.com/gat/lisp/djbec.lisp http://www.flownet.com/gat/lisp/djbec.lisp
for some example code that uses this parser. Scroll down about half way and take a look at xpt-add and xpt-double.
- edflsafoiewq 8y agoIt's even easier to embed a sublanguage that requires two sets of parens to write a list if that's what happens to make you happy. ((+ ((* 2 x)) y)) "I have this sublanguage..." is not a very interesting participant in the evidence that Lisp doesn't have lots of parens.
- lisper 8y agoI can add arbitrary numbers of parens to your code too. I fail to see the point.