For my homework, I have a small List interpreter written in C with few functions already coded : set
, cons
, car
, cdr
and quote
.
And I have to add 6 another functions of my choice. 3 with argument evaluation, and 3 without argument evaluation.
With evaluation, I choose : eq
, +
and -1
,
but I don't have any idea for the 3 next, what kind of Lisp function is useful without argument evaluation ?
cond
which does not evaluate its arguments like a function. Maybe you could implement some other special forms for control flow. Maybe you could implementdefun
. – Dan Robertsonif
which is a slam dunk. – Sylwester