1 /*******************************************************************
3 * A Lisp compiler
, written
in Prolog
9 * This program provides some built
-in functionality
for the
10 * Lisp compiler
. It requires that the file lisp_compiler
.pl has
11 * already been successfully compiled
.
13 * Definitions
in this file are
given in the Lisp
-like syntax
14 * read by this compiler
.
16 *******************************************************************/
26 % We don
't support &rest parameters yet, so we need a different
27 % definition of list for every different number of arguments
39 lisp_append(l1, l2) <<==
50 cons( lisp_apply(func, list_1(first(l))),
51 mapcar(func, rest(l)))).