Commit Graph

7 Commits

Author SHA1 Message Date
Elf M. Sternberg 3a59d3f2f1 Metacadr's reuse doesn't kill people. Mutation kills people!
Updated metacadr's test suite to ensure that re-using a
metacadr-generated function does not lead to crashes.  Saw this a lot in
early versions of LISP.
2015-05-20 22:33:17 -07:00
Elf M. Sternberg d9345c513a Metacadr was broken. You won't believe why!
Lists are mutable, even by-reference.  When I was popping off the values,
I was destroying the list; metacadr only worked once.  That was terrible
functional programming.  I should learn to trust myself; by using a
cons-list for my operations index and a lookup table (anti-if!)
for my operations, the code was simplified incredibly.

Also, added a very (!) primitive pretty printer.  It'll get better over
time, but for now it's sufficient for debugging.
2015-05-20 15:43:34 -07:00
Elf M. Sternberg 75a22f87ea Makefile to install locally, with clean and variable targets. 2015-05-13 20:00:56 -07:00
Elf M. Sternberg 8f353fce29 Removed some comments that didn't make sense in context. 2015-05-13 16:24:24 -07:00
Elf M. Sternberg 05f494be04 Merge branch 'master' of github.com:elfsternberg/cons-lists
* 'master' of github.com:elfsternberg/cons-lists:
  Initial commit

Conflicts:
	LICENSE
2015-05-13 16:22:58 -07:00
Elf M. Sternberg 67720f4f6a Clean up and initial commit. 2015-05-13 16:20:16 -07:00
Elf M. Sternberg 2ad6eed680 Initial commit 2015-05-13 16:17:35 -07:00