Commit graph

39 commits

Author SHA1 Message Date
Jan Nieuwenhuizen 5126e16e66 trying to get records up....WIP 2016-07-23 14:39:33 +02:00
Jan Nieuwenhuizen 502336bf30 lib/srfi/srfi-0.scm: add. 2016-07-23 12:54:34 +02:00
Jan Nieuwenhuizen b63444d919 mes.c: barf on unknown symbols. 2016-07-23 11:51:06 +02:00
Jan Nieuwenhuizen 27ec11474b scm.mes: add last-pair. 2016-07-23 08:17:49 +02:00
Jan Nieuwenhuizen 5105f1e516 scm.mes: add assq-set!, assq-ref. 2016-07-23 01:38:25 +02:00
Jan Nieuwenhuizen efdd84b4c4 mes.c: add new macro type, junk *macro* hack. 2016-07-22 17:13:51 +02:00
Jan Nieuwenhuizen 04f3323f10 mes.c: store actual environment with closures. 2016-07-22 12:23:23 +02:00
Jan Nieuwenhuizen 24be64787b mes.c: store enviroment depth in closures. Fixes c1, c3 and more. 2016-07-19 21:37:39 +02:00
Jan Nieuwenhuizen 61bbbdffbf mes.c: move begin_env into eval, decruft. 2016-07-19 18:18:27 +02:00
Jan Nieuwenhuizen 80e6f95f91 fix some tests. 2016-07-18 22:59:33 +02:00
Jan Nieuwenhuizen 3a28828bdf remove booting into mes (would need VM), boot.mes; rewrite test.mes. 2016-07-18 22:43:16 +02:00
Jan Nieuwenhuizen bba631edcd add equal?, member, for-each. 2016-07-17 22:35:00 +02:00
Jan Nieuwenhuizen 59cdf9632f closures: mostly supported... 2016-07-17 22:15:31 +02:00
Jan Nieuwenhuizen f1bd1d461f add simple <=, >= and list?. 2016-07-17 12:56:31 +02:00
Jan Nieuwenhuizen c4d3d26f8d scm.mes: and: bugfix, return #f for (and #f 1 2 3). 2016-07-17 12:14:46 +02:00
Jan Nieuwenhuizen 44b26569a6 implement variable-argument and, or. 2016-07-16 20:02:14 +02:00
Jan Nieuwenhuizen 47fd339305 implement let loop. 2016-07-16 19:10:04 +02:00
Jan Nieuwenhuizen b638d33e4b cleanup let, let*, letrec 2016-07-16 17:57:19 +02:00
Jan Nieuwenhuizen dc8325ded3 implement unquote-splicing, cleanup some macros 2016-07-16 17:18:11 +02:00
Jan Nieuwenhuizen 02dc00d11c update macro, fix andmap. 2016-07-16 13:24:38 +02:00
Jan Nieuwenhuizen c1886195e6 add scheme apply, rename apply-> apply_env. 2016-07-16 08:17:56 +02:00
Jan Nieuwenhuizen 5d2259e55e add procedure? 2016-07-11 22:16:11 +02:00
Jan Nieuwenhuizen 3a29b03529 +,-,*,/: take n arguments. 2016-07-11 20:58:30 +02:00
Jan Nieuwenhuizen 7f35686b61 add call-with-values, values. 2016-07-11 19:32:11 +02:00
Jan Nieuwenhuizen 2e1e307f13 add memq/memv. 2016-07-11 11:05:17 +02:00
Jan Nieuwenhuizen 081cb4a94f add vectors. 2016-07-11 10:38:02 +02:00
Jan Nieuwenhuizen b3d105ad50 add begin. 2016-07-10 15:19:20 +02:00
Jan Nieuwenhuizen 1584bb8701 add letrec. 2016-07-10 13:47:56 +02:00
Jan Nieuwenhuizen f373e5ae76 add not, if. 2016-07-10 13:04:10 +02:00
Jan Nieuwenhuizen 0ef7238600 loop2.mes: separate from scm.mes. 2016-07-10 10:55:05 +02:00
Jan Nieuwenhuizen 00687ba91a add set!. 2016-07-10 10:43:26 +02:00
Jan Nieuwenhuizen 72d96eb485 snarf scm functions and environment. 2016-07-09 23:12:25 +02:00
Jan Nieuwenhuizen de2e9502cf map: support two lists. 2016-07-09 22:05:07 +02:00
Jan Nieuwenhuizen 717ae9cdc1 add simple map. 2016-07-09 22:01:13 +02:00
Jan Nieuwenhuizen 6b54eb9d76 add let*. 2016-07-09 20:12:49 +02:00
Jan Nieuwenhuizen 59bd723a8d move mes language additions to scm.mes. 2016-07-09 15:16:30 +02:00
Jan Nieuwenhuizen 1513c0d5fb boot.mes: generate from mes.mes, scm.mes, test.mes. 2016-07-09 13:23:58 +02:00
Jan Nieuwenhuizen 0eb32de9c7 mes.c: support `.' and add let. 2016-07-08 18:02:06 +02:00
Jan Nieuwenhuizen 1a565a9208 Leave pure LISP.
* GNUmakefile: New file.
* mes.c: Lots of work.
* mes.mes: New file, split-off from mes.scm.
(builtin, number): New function.
(apply): Use them.
* mes.test: New file.
* scm.mes: New file, split-off from mes.scm.
2016-07-09 13:04:20 +02:00