Hello,
I'm trying to adapt f90.lisp to print out C code. I think that I got
the easiest parts done already but I'm
stuck trying to call scanmap from lisp. I've tried to do it like this
(setq l (mfuncall '$scanmap (mfuncal '$lambda [x] x) l))
and
(setq l ($scanmap ($lambda [x] x) l))
and got these errors
EVAL: undefined function MFUNCAL
EVAL: undefined function $SCANMAP
What I'm trying to do is get this into lisp
exp_trans: scanmap(lambda([xx],
if mapatom(xx) or op(xx) # "^" then xx
else pow(args(xx)[1], args(xx)[2])), exp);
I searched the source code to see if there are any examples of such
call but couldn't find any. If anybody knows
how to do this or has suggestions for better ways of doing please let me know.
--
Daniel Cabrini Hauagge
email: daniel.hauagge at gmail.com
cel: +55 (19) 8194-8480