|
From: Eduardo O. <edu...@gm...> - 2024-10-29 20:30:22
|
Hi list,
I was trying to fix a bug in how LispTree handles nouns and verbs and
I think that I found a bug in verbify... try this, and look at what
happens when we run low(f5(foo)) again after running low(f5(?foo)):
format([args]) := apply(?format, append([false], args));
low(o) := format("~s",o);
v(o) := verbify(o);
n(o) := nounify(o);
f5(o) := [n(v(o)), v(o), o, n(o), v(n(o))];
low(f5(foo)); /* ((MLIST SIMP) %FOO $FOO $FOO %FOO $FOO) */
low(f5(?foo)); /* ((MLIST SIMP) %FOO FOO FOO %FOO FOO) */
low(f5(foo)); /* ((MLIST SIMP) %FOO $FOO $FOO %FOO FOO) */
The result of verbify(nounify(foo)) changes!
Cheers =/,
Eduardo Ochs
http://anggtwu.net/eev-maxima.html
http://anggtwu.net/lisptree.html
|