Commit Graph

17 Commits

Author SHA1 Message Date
Elf M. Sternberg 02f8b8e4dd Fixed my terrible, broken, no-good readme. Now with API! 2015-06-23 13:10:05 -07:00
Elf M. Sternberg c34a0f391b Reverse works, but not prettily. 2015-06-23 08:09:20 -07:00
Elf M. Sternberg c5008cdb5d Added fundamental traversal tests. They passed (of course, otherwise many
other things would already be failing), but I can't believe I forgot them.
Some TDD'r I am.
2015-06-23 07:35:06 -07:00
Elf M. Sternberg e06204a641 Updating package.json to include Coffeescript correctly. 2015-06-22 19:47:35 -07:00
Elf M. Sternberg 755271775f Updating package.json to include Coffeescript. 2015-06-22 19:47:07 -07:00
Elf M. Sternberg cfb2c3c08b Updating package.json to include Mocha. 2015-06-22 19:46:18 -07:00
Elf M. Sternberg 54da8c6b65 Changed the list structure to not respect cons(nil, nil) == nil.
I think this is a mistake, but at the moment I'm not clever enough to
figure out how to properly acknowledge an end-of-list without a special
sentinel, which I'm trying to avoid.

TODO: Revisit this.

Modified Makefile to produce JUnit-compatible error messages.

Style (coffee-lint cleanup)
2015-06-22 17:03:21 -07:00
Elf M. Sternberg 46f6600a55 Fixed with the linter, and updated the package.json file to reflect that. You won't believe how easy it was! 2015-05-22 22:50:42 -07:00
Elf M. Sternberg 5c8939a7d6 A small check to run linter. 2015-05-22 22:19:58 -07:00
Elf M. Sternberg 75b9fa18b7 This one patch improves test accessibility with just two words! 2015-05-21 11:06:06 -07:00
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