Updates to Schme2Lisp
Alright, first of all, a word of caution. A big word of caution: Since LISP does not have a false value, but uses NIL or (), those are considered to be false in LISP. In Scheme, however, () is NOT FALSE (but true). So when this little script converts from #f to NIL, be careful.
I only say this because I just spent a bunch of time trying to figure out where the translation went wrong, because I was relying on () being true.
Another thing to look out for is the list-ref -> nth conversion, which may not always be correct. I can’t remember.
Changes to Scheme2Lisp:
- Very important: equal? -> equal (not eql)
- Added: (define (bob)) -> (defun bob ())
- Added: (list-ref) -> (nth)

