4 ms·
> There are Lisps in awk but they do weird tricks with text as far as I remember. Not quite -- https://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp
by abecedarius 5y ago
> There are Lisps in awk but they do weird tricks with text as far as I remember.
Not quite -- https://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/lisp/impl/awk/0.html https://www.cs.cmu.edu/afs/cs/project/ai-repository/ai/lang/... was the first and used two global associative arrays, car[n] and cdr[n], where n is an integer which iirc had to have a particular tag modulo 4, as the type tag. (Much as you'd do it in a lower-level C implementation.) I used almost the same scheme in my later Lisp.
- chubot 5y agoYeah this is cool, I was thinking of the "normal" way of doing it where evaluating a Lisp function reinvokes the interpreter function. But there are obviously other ways to do it if you have global arrays, as awk does.