Commit graph

51 commits

Author SHA1 Message Date
Justin Ethier
aea65ac563 Clean up renamed symbols that are quoted. 2016-09-22 23:55:19 -04:00
Justin Ethier
7b441dcfcf Change rename env to a local instead of a global 2016-09-21 17:25:36 -04:00
Justin Ethier
5f93f3e9cb Allow (macro:add-renamed-vars!) to mutate env 2016-09-22 03:44:29 -04:00
Justin Ethier
6ca3b7fca7 Staging changes to use a rename tbl instead of glo 2016-09-20 18:55:12 -04:00
Justin Ethier
796d5f9e0a Get macros to work by adding a rename env
Each macro will use its own use environment to rename macros, but a common environment will be used by all macro expansions (and after the last expansion) to map any renamed free variables back to the expected symbol.
2016-09-20 17:32:26 -04:00
Justin Ethier
d7bd650cfd Fix how lambda vars are added to bound var list 2016-09-21 02:12:23 -04:00
Justin Ethier
49235c0a82 Handle null during cleanup 2016-09-20 04:09:53 -04:00
Justin Ethier
bccbef125b Fix call to lambda->exp 2016-09-20 02:46:49 -04:00
Justin Ethier
9555c48850 Check if renamed symbol is a bound variable 2016-09-17 17:23:26 -04:00
Justin Ethier
d2019bb284 WIP 2016-09-16 19:19:25 -04:00
Justin Ethier
f51a680eef Add macro:clean 2016-09-16 18:19:50 -04:00
Justin Ethier
4f99b8b629 Relocated (lambda->exp) 2016-09-16 17:51:48 -04:00
Justin Ethier
c4829df732 WIP 2016-09-17 02:57:50 -04:00
Justin Ethier
fcfa5bda2f WIP 2016-09-16 03:29:27 -04:00
Justin Ethier
cd1c5eb99d WIP 2016-09-16 01:08:20 -04:00
Justin Ethier
a822bc9e91 Pass additional environments to er macro functions 2016-09-14 17:36:53 -04:00
Justin Ethier
089a64d290 Replace (macro?) with (Cyc-macro?) 2016-07-14 22:29:58 -04:00
Justin Ethier
b7a5d0c3ad Removed old comments 2016-06-10 23:49:21 -04:00
Justin Ethier
2c73f20e99 Remove debugging 2016-06-10 22:51:11 -04:00
Justin Ethier
730434bb14 Added header comment block. 2016-02-14 22:35:04 -05:00
Justin Ethier
0578c4963a Cleanup 2015-09-01 21:30:20 -04:00
Justin Ethier
e177410706 Cut-over to expand2 2015-09-02 01:41:30 -04:00
Justin Ethier
9a3d370de4 Build macro env on top of global env 2015-09-02 01:20:47 -04:00
Justin Ethier
1244ea5342 WIP 2015-09-02 01:06:29 -04:00
Justin Ethier
6bf6b028d2 WIP 2015-09-02 00:09:06 -04:00
Justin Ethier
179d4008fb Bugfixes? 2015-09-01 22:45:24 -04:00
Justin Ethier
a01086e904 Use macro env instead of *defined-macros* list 2015-08-31 23:21:15 -04:00
Justin Ethier
dadabcaa80 Reverted to a working state
Now need to rework previous changes to cut-over to macro-environments
2015-08-31 18:59:22 -04:00
Justin Ethier
5441714fbd Added TODO 2015-08-28 23:52:12 -04:00
Justin Ethier
c170b253a7 Switch transforms over to use env's for expand 2015-08-28 23:40:39 -04:00
Justin Ethier
09a6529525 Fixed name not matching up with global 2015-08-28 22:03:11 -04:00
Justin Ethier
c887cfe04b WIP - create top-level macro env 2015-08-27 22:59:37 -04:00
Justin Ethier
8a31c2ed0f Changed call signature of cyc-er-rename 2015-08-27 22:26:53 -04:00
Justin Ethier
e9c5e873bd Refactoring ER code 2015-08-26 22:49:52 -04:00
Justin Ethier
9c3f177650 Cleanup 2015-08-26 00:40:01 -04:00
Justin Ethier
2c2c5b9da1 Added debug output 2015-08-24 22:59:37 -04:00
Justin Ethier
32a2a72ab5 WIP - debugging 2015-08-24 21:53:59 -04:00
Justin Ethier
59c1802ed2 Temporarily commented-out code while testing fix 2015-08-24 21:27:13 -04:00
Justin Ethier
cbcffd2451 Allow expanding interpreted macro from within another 2015-08-22 01:43:24 -04:00
Justin Ethier
d929acb220 Cleanup 2015-08-21 23:18:28 -04:00
Justin Ethier
322696e4c1 Cleanup 2015-08-18 21:59:12 -04:00
Justin Ethier
1dc762a048 Bugfix for expand - seems to work for compiled macros now 2015-08-18 21:36:05 -04:00
Justin Ethier
915915b75f WIP 2015-08-17 23:01:45 -04:00
Justin Ethier
5a27727c4f Restructuring 2015-08-14 23:51:14 -04:00
Justin Ethier
cc27e2b355 Added TODO 2015-08-15 02:08:37 -04:00
Justin Ethier
92f980b8ce Revert previous incorrect change to macro:add! 2015-08-14 01:52:58 -04:00
Justin Ethier
cd81fbbea8 Fixup how macro:add stores macros 2015-08-14 01:35:14 -04:00
Justin Ethier
52894f0f29 Only add newly-defined macros to meta files 2015-08-13 22:08:35 -04:00
Justin Ethier
9c447a384a WIP - macros 2015-08-06 22:03:54 -04:00
Justin Ethier
d4b4bbd7fb Added macros module 2015-08-04 21:48:26 -04:00