├── .gitignore ├── LICENSE ├── Makefile ├── README ├── bootstrap-check.sh ├── compiler.lisp ├── compiler.secd ├── compiler0.secd ├── compiler1.lisp ├── compiler2.lisp ├── compiler2.secd ├── compiler3.lisp ├── examples ├── ackermann.lisp ├── append.lisp ├── factorial.lisp ├── fibonnaci.lisp ├── flatten.lisp ├── hello.lisp ├── if-test1.lisp ├── inc.lisp ├── mapcar.lisp ├── null.lisp ├── reverse.lisp └── square.lisp ├── gc.c ├── gc.h ├── intern.c ├── lispkit.1 ├── lispkit.c ├── lispkit.h ├── lispkitc.in ├── main.c ├── parser.c ├── print.c ├── secd.c ├── test.sh └── tests ├── compile-01 ├── compile-02 ├── compile-03 ├── compile-04 ├── compile-05 ├── compile-06 ├── compile-07 ├── compile-08 ├── compile-09 ├── compile-10 ├── compile-11 ├── compile-12 ├── compile-13 ├── compile-14 ├── compile-15 ├── compile-16 ├── compile-17 ├── compile-18 ├── compile-19 ├── execute-01 ├── execute-01-args ├── execute-02 ├── execute-02-args ├── execute-03 ├── execute-03-args ├── execute-04 ├── execute-04-args ├── execute-05 ├── execute-05-args ├── execute-06 ├── execute-06-args ├── execute-07 ├── execute-07-args ├── execute-08 ├── execute-08-args ├── execute-09 ├── execute-09-args ├── execute-10 ├── execute-10-args ├── execute-11 ├── execute-11-args ├── execute-12 ├── execute-12-args ├── execute-13 ├── execute-13-args ├── execute-14 ├── execute-14-args ├── execute-15 ├── execute-15-args ├── execute-16 ├── execute-16-args ├── execute-17 ├── execute-17-args ├── execute-18 ├── execute-18-args ├── execute-19 ├── execute-19-args ├── execute-20 ├── execute-20-args ├── execute-21 ├── execute-21-args ├── execute-22 ├── execute-22-args ├── execute-23 ├── execute-23-args ├── execute-24 ├── execute-24-args ├── execute-25 ├── execute-25-args ├── execute-26 ├── execute-26-args ├── execute-27 ├── execute-27-args ├── execute-28 └── execute-28-args /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/Makefile -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/README -------------------------------------------------------------------------------- /bootstrap-check.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/bootstrap-check.sh -------------------------------------------------------------------------------- /compiler.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/compiler.lisp -------------------------------------------------------------------------------- /compiler.secd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/compiler.secd -------------------------------------------------------------------------------- /compiler0.secd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/compiler0.secd -------------------------------------------------------------------------------- /compiler1.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/compiler1.lisp -------------------------------------------------------------------------------- /compiler2.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/compiler2.lisp -------------------------------------------------------------------------------- /compiler2.secd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/compiler2.secd -------------------------------------------------------------------------------- /compiler3.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/compiler3.lisp -------------------------------------------------------------------------------- /examples/ackermann.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/ackermann.lisp -------------------------------------------------------------------------------- /examples/append.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/append.lisp -------------------------------------------------------------------------------- /examples/factorial.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/factorial.lisp -------------------------------------------------------------------------------- /examples/fibonnaci.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/fibonnaci.lisp -------------------------------------------------------------------------------- /examples/flatten.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/flatten.lisp -------------------------------------------------------------------------------- /examples/hello.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/hello.lisp -------------------------------------------------------------------------------- /examples/if-test1.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/if-test1.lisp -------------------------------------------------------------------------------- /examples/inc.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/inc.lisp -------------------------------------------------------------------------------- /examples/mapcar.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/mapcar.lisp -------------------------------------------------------------------------------- /examples/null.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/null.lisp -------------------------------------------------------------------------------- /examples/reverse.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/reverse.lisp -------------------------------------------------------------------------------- /examples/square.lisp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/examples/square.lisp -------------------------------------------------------------------------------- /gc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/gc.c -------------------------------------------------------------------------------- /gc.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/gc.h -------------------------------------------------------------------------------- /intern.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/intern.c -------------------------------------------------------------------------------- /lispkit.1: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/lispkit.1 -------------------------------------------------------------------------------- /lispkit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/lispkit.c -------------------------------------------------------------------------------- /lispkit.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/lispkit.h -------------------------------------------------------------------------------- /lispkitc.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/lispkitc.in -------------------------------------------------------------------------------- /main.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/main.c -------------------------------------------------------------------------------- /parser.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/parser.c -------------------------------------------------------------------------------- /print.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/print.c -------------------------------------------------------------------------------- /secd.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/secd.c -------------------------------------------------------------------------------- /test.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/test.sh -------------------------------------------------------------------------------- /tests/compile-01: -------------------------------------------------------------------------------- 1 | ( QUOTE A ) 2 | -------------------------------------------------------------------------------- /tests/compile-02: -------------------------------------------------------------------------------- 1 | ( CAR ( QUOTE A ) ) 2 | -------------------------------------------------------------------------------- /tests/compile-03: -------------------------------------------------------------------------------- 1 | ( CDR ( QUOTE A ) ) 2 | -------------------------------------------------------------------------------- /tests/compile-04: -------------------------------------------------------------------------------- 1 | ( ATOM ( QUOTE A ) ) 2 | -------------------------------------------------------------------------------- /tests/compile-05: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-05 -------------------------------------------------------------------------------- /tests/compile-06: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-06 -------------------------------------------------------------------------------- /tests/compile-07: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-07 -------------------------------------------------------------------------------- /tests/compile-08: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-08 -------------------------------------------------------------------------------- /tests/compile-09: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-09 -------------------------------------------------------------------------------- /tests/compile-10: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-10 -------------------------------------------------------------------------------- /tests/compile-11: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-11 -------------------------------------------------------------------------------- /tests/compile-12: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-12 -------------------------------------------------------------------------------- /tests/compile-13: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-13 -------------------------------------------------------------------------------- /tests/compile-14: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-14 -------------------------------------------------------------------------------- /tests/compile-15: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-15 -------------------------------------------------------------------------------- /tests/compile-16: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-16 -------------------------------------------------------------------------------- /tests/compile-17: -------------------------------------------------------------------------------- 1 | ( LET X ( X QUOTE A ) ) 2 | -------------------------------------------------------------------------------- /tests/compile-18: -------------------------------------------------------------------------------- 1 | ( LETREC X ( X QUOTE A ) ) 2 | -------------------------------------------------------------------------------- /tests/compile-19: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/compile-19 -------------------------------------------------------------------------------- /tests/execute-01: -------------------------------------------------------------------------------- 1 | ( 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-01-args: -------------------------------------------------------------------------------- 1 | ( B C ) 2 | -------------------------------------------------------------------------------- /tests/execute-02: -------------------------------------------------------------------------------- 1 | ( 2 A 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-02-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-03: -------------------------------------------------------------------------------- 1 | ( 2 A 12 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-03-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-04: -------------------------------------------------------------------------------- 1 | ( 2 ( A ) 12 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-04-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-05: -------------------------------------------------------------------------------- 1 | ( 2 ( A ) 10 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-05-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-06: -------------------------------------------------------------------------------- 1 | ( 2 A 2 B 13 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-06-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-07: -------------------------------------------------------------------------------- 1 | ( 2 A 2 B 14 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-07-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-08: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/execute-08 -------------------------------------------------------------------------------- /tests/execute-08-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-09: -------------------------------------------------------------------------------- 1 | ( 2 271 2 127 15 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-09-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-10: -------------------------------------------------------------------------------- 1 | ( 2 271 2 127 16 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-10-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-11: -------------------------------------------------------------------------------- 1 | ( 2 271 2 127 17 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-11-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-12: -------------------------------------------------------------------------------- 1 | ( 2 271 2 127 18 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-12-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-13: -------------------------------------------------------------------------------- 1 | ( 2 271 2 127 19 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-13-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-14: -------------------------------------------------------------------------------- 1 | ( 2 271 2 127 20 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-14-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-15: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/execute-15 -------------------------------------------------------------------------------- /tests/execute-15-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-16: -------------------------------------------------------------------------------- 1 | ( 2 127 2 271 20 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-16-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-17: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/execute-17 -------------------------------------------------------------------------------- /tests/execute-17-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-18: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/execute-18 -------------------------------------------------------------------------------- /tests/execute-18-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-19: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/execute-19 -------------------------------------------------------------------------------- /tests/execute-19-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-20: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/execute-20 -------------------------------------------------------------------------------- /tests/execute-20-args: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /tests/execute-21: -------------------------------------------------------------------------------- 1 | ( 3 ( 2 A ) 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-21-args: -------------------------------------------------------------------------------- 1 | ( B C ) 2 | -------------------------------------------------------------------------------- /tests/execute-22: -------------------------------------------------------------------------------- 1 | ( 3 ( 2 A 21 ) 4 ) 2 | 3 | -------------------------------------------------------------------------------- /tests/execute-22-args: -------------------------------------------------------------------------------- 1 | ( B C ) 2 | -------------------------------------------------------------------------------- /tests/execute-23: -------------------------------------------------------------------------------- 1 | ( 3 ( 2 A 5 ) 4 21 ) 2 | -------------------------------------------------------------------------------- /tests/execute-23-args: -------------------------------------------------------------------------------- 1 | ( B C ) 2 | -------------------------------------------------------------------------------- /tests/execute-24: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/execute-24 -------------------------------------------------------------------------------- /tests/execute-24-args: -------------------------------------------------------------------------------- 1 | ( B C ) 2 | -------------------------------------------------------------------------------- /tests/execute-25: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/execute-25 -------------------------------------------------------------------------------- /tests/execute-25-args: -------------------------------------------------------------------------------- 1 | ( B C ) ( D E ) 2 | -------------------------------------------------------------------------------- /tests/execute-26: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/execute-26 -------------------------------------------------------------------------------- /tests/execute-26-args: -------------------------------------------------------------------------------- 1 | ( B C ) 2 | -------------------------------------------------------------------------------- /tests/execute-27: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/execute-27 -------------------------------------------------------------------------------- /tests/execute-27-args: -------------------------------------------------------------------------------- 1 | ( B C ) ( D E ) 2 | -------------------------------------------------------------------------------- /tests/execute-28: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/carld/lispkit/HEAD/tests/execute-28 -------------------------------------------------------------------------------- /tests/execute-28-args: -------------------------------------------------------------------------------- 1 | ( B C ) 2 | --------------------------------------------------------------------------------