Commit Graph

63 Commits

Author SHA1 Message Date
Yuichi Nishiwaki a9f4eff13e add parameter primitives: (picrin parameter) library 2014-01-09 00:39:13 +09:00
Yuichi Nishiwaki b9ef51530f don't intern symbols newly generated by new_uniq_sym 2014-01-08 20:41:29 +09:00
Yuichi Nishiwaki dccc234fd9 add pic_import 2014-01-08 15:38:31 +09:00
Yuichi Nishiwaki 33cbf5ff6a configurable none value 2014-01-08 15:22:23 +09:00
Yuichi Nishiwaki 76f5cbf0b3 ENDLIBRARY requires a trailing semicolon 2013-12-10 07:26:43 -08:00
Yuichi Nishiwaki fb34b71de1 [bugfix] identifier=? dies when take auxiliary syntax (because they emit
errors during expansion)
2013-12-10 01:50:53 -08:00
Yuichi Nishiwaki 41ffd0d7e5 define macro primitives (such as make-syntactic-closure) in (picrin macro) 2013-12-10 01:49:48 -08:00
Yuichi Nishiwaki e021ac52ac identifier=? dons not necessarily take identifiers 2013-12-10 00:22:34 -08:00
Yuichi Nishiwaki 038020ff9f sequentially evaluate programs declared in library at the macroexpansion phase 2013-12-09 23:00:13 -08:00
Yuichi Nishiwaki 74feec78f1 always emit the same unique symbol for unbound variable 2013-12-09 09:32:30 -08:00
Yuichi Nishiwaki 725297384a define-syntax is now capable of takeing a synclo object at the position
of the syntax name
2013-12-09 09:26:28 -08:00
Yuichi Nishiwaki d871c6f06c import and export take multiple spec in a time 2013-12-09 09:22:38 -08:00
Yuichi Nishiwaki 39b28fa674 debug print might cause segv 2013-12-09 09:09:24 -08:00
Yuichi Nishiwaki eeb09f336e Merge branch 'master' into libraries
Conflicts:
	src/macro.c
	src/pair.c
2013-12-09 08:27:29 -08:00
Yuichi Nishiwaki e05a469a06 fix ir-macro-transformer 2013-12-09 07:27:11 -08:00
Yuichi Nishiwaki 0dddddab55 ir-macro-transformer was broken 2013-12-09 07:26:51 -08:00
Yuichi Nishiwaki 5035831d84 [bugfix] syntax objects should be brought to imported library's
senv->stx holder
2013-12-08 00:52:34 -08:00
Yuichi Nishiwaki e71c5abfdb rename unbound symbols by default 2013-12-07 20:45:47 -08:00
Yuichi Nishiwaki 01e60b5d8e add pic_export and pic_export_as 2013-12-07 20:44:39 -08:00
Yuichi Nishiwaki 0110370cc4 improve reusability 2013-12-07 20:43:57 -08:00
Yuichi Nishiwaki 791ab95219 [bugfix] taking a wrong symbol for exporting 2013-12-07 19:03:18 -08:00
Yuichi Nishiwaki 0f491adc73 select library during macroexpanding define-library 2013-12-07 18:59:35 -08:00
Yuichi Nishiwaki 818430bb81 implement import/export syntax 2013-12-07 09:42:34 -08:00
Yuichi Nishiwaki 1ac5b6458c add pic_null_syntactic_env and pic_minimal_syntactic_env 2013-12-07 07:04:26 -08:00
Yuichi Nishiwaki 381ed58bff add global library table 2013-12-07 05:36:14 -08:00
Yuichi Nishiwaki 931565d4ce add pic_lib 2013-12-07 03:58:18 -08:00
Yuichi Nishiwaki acbcde3b6a initial library support 2013-12-07 03:04:27 -08:00
Yuichi Nishiwaki 25378e3813 cosmetic changes 2013-12-06 07:51:32 -08:00
Yuichi Nishiwaki ef04e3f02c add pic_core_syntactic_env 2013-12-06 18:04:36 +09:00
Yuichi Nishiwaki dc7c801c38 exprs during macroexpansion may have syntactic-closure in the tail position 2013-12-03 13:08:00 +09:00
Yuichi Nishiwaki 761deffe1f macroexpand_list supports any kind of improper list 2013-12-03 13:07:25 +09:00
Yuichi Nishiwaki e10bbac8e5 accept injected symbols (syntactic-closures) at the places of lambda formals 2013-11-28 18:40:31 +09:00
Yuichi Nishiwaki 49caf79ce6 [bugfix] new_uniq_sym must take one more byte chunk for new string 2013-11-27 06:31:12 -08:00
Yuichi Nishiwaki 7b8ee3eb97 add er-macro-transformer 2013-11-27 17:26:07 +09:00
Yuichi Nishiwaki 1ab588d21f added hygienic macro facility! Fooo! 2013-11-27 15:58:28 +09:00
Yuichi Nishiwaki 9a027dae6e add error guard 2013-11-27 15:57:23 +09:00
Yuichi Nishiwaki 78cafe3db7 add make-syntactic-closure function 2013-11-27 15:04:44 +09:00
Yuichi Nishiwaki ab74920a6f add pic_sc (syntactic closure) structure 2013-11-27 15:04:02 +09:00
Yuichi Nishiwaki a7a3bfc270 [CSE] add new_global_senv and new_local_senv 2013-11-27 14:19:46 +09:00
Yuichi Nishiwaki b4218a7a03 cosmetic changes 2013-11-27 14:00:23 +09:00
Yuichi Nishiwaki 73831283b6 cleanup 2013-11-27 13:51:24 +09:00
Yuichi Nishiwaki 94aac37443 macros must be added to var_tbl 2013-11-26 17:43:59 -08:00
Yuichi Nishiwaki d2af692280 add a fixme comment 2013-11-26 17:43:49 -08:00
Yuichi Nishiwaki 38ab43d7fc [bugfix] binding leak 2013-11-26 16:51:48 -08:00
Yuichi Nishiwaki 3710d5feea support varg lambda 2013-11-26 16:51:17 -08:00
Yuichi Nishiwaki b2704fb123 increment xlen in the end 2013-11-26 16:50:38 -08:00
Yuichi Nishiwaki c336a354e4 publish pic_defmacro as a public API 2013-11-26 09:09:15 -08:00
Yuichi Nishiwaki 2dee30a0b5 macroexpand_list supports improper list 2013-11-26 09:07:57 -08:00
Yuichi Nishiwaki 43d449d2aa s/define_macro/pic_defmacro/g 2013-11-26 09:07:06 -08:00
Yuichi Nishiwaki be311cb96f replace old macroexpand facility with new renamer implementation 2013-11-26 08:43:58 -08:00