add brainfuck->tree-il compiler
authorAndy Wingo <wingo@pobox.com>
Sun, 21 Jun 2009 12:53:33 +0000 (14:53 +0200)
committerAndy Wingo <wingo@pobox.com>
Sun, 21 Jun 2009 13:06:04 +0000 (15:06 +0200)
commit5c27902e5e01a94b22ebc51288500a3d36253293
treee727ec2cde7301e185bef67b2c1ca1f3296f1fb6
parentfe2400b2141fbde17eab517794773203fc19f952
add brainfuck->tree-il compiler

* module/Makefile.am (BRAINFUCK_LANG_SOURCES): Compile at the end. Add
  compile-tree-il.scm.

* module/language/brainfuck/compile-tree-il.scm: New compiler, compiles
  to tree-il instead of scheme. I thought it would be more illustrative,
  though there are some uncommented bits.

* module/language/brainfuck/parse.scm: Modify not to put a header on the
  scheme representation. After all, we don't put <scheme> before scheme
  code, do we? :)

* module/language/brainfuck/spec.scm: Add tree-il compiler.

* module/language/tree-il.scm: Understand (set! (lexical foo) ...).

* module/system/base/language.scm: Update license. Actually, updates
  licenses on all these.
module/Makefile.am
module/language/brainfuck/compile-tree-il.scm [new file with mode: 0644]
module/language/brainfuck/parse.scm
module/language/brainfuck/spec.scm
module/language/tree-il.scm
module/system/base/language.scm