1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 10:37:58 +03:00
Commit Graph

13 Commits

Author SHA1 Message Date
Dov Murik
12e4facd67 ps: Fix exception on literal empty list
Issue #190
2016-03-30 13:15:23 -04:00
Joel Martin
406761e769 ps: fix self-host and runtest.py parsing issue.
- make sure readline has large enough string for steps2-A
- fix keyword? so that it doesn't leave anything extra on the stack
- fix argparse command line parsing so that that the second '--' on
  the command line is not dropped.
2015-10-12 22:14:45 -05:00
Joel Martin
fa64b74146 PS: include/run from same directory. 2014-05-10 16:29:07 -05:00
Joel Martin
6301e0b637 All: TCO let* and quasiquote. 2014-04-23 21:59:50 -05:00
Joel Martin
86b689f3d7 All: *ARGV* and *host-language*. Misc syncing/fixes. 2014-04-19 13:04:09 -05:00
Joel Martin
8cb5cda46c All: move some fns to core. Major cleanup.
- Don't import/require core until step4.
- Define cond/or macros from step8
2014-04-16 23:57:50 -05:00
Joel Martin
0027e8fed4 PS: fix function closures. Self-hosted up to step7. 2014-04-14 22:46:54 -05:00
Joel Martin
5ce65382cf PS: add vector, hash-map, atoms and metadata.
As part of this lists switch from being a postscript array to being
a mal boxed type (dictionary with type in the /_maltype_ key).
2014-04-06 15:23:40 -05:00
Joel Martin
ea81a8087b All: split types into types, env, printer, core.
- types: low-level mapping to the implementation language.
- core: functions on types that are exposed directly to mal.
- printer: implementation called by pr-str, str, prn, println.
- env: the environment implementation

- Also, unindent all TCO while loops so that the diff of step4 and
  step5 are minimized.
2014-04-02 22:23:37 -05:00
Joel Martin
950e3c765e PS: add stepA_more.
Sync other steps. In particular, self reference in function definition
and putting readline into _readline function.
2014-04-01 21:50:24 -05:00
Joel Martin
3da90d3907 PS: add step8_macros.
Use dicts rather than array block for user defined mal function type.
Add fload function to setup call from a mal_function dict.
2014-03-31 23:05:41 -05:00
Joel Martin
8e7e339db8 PS: add step7_quote 2014-03-30 22:39:44 -05:00
Joel Martin
46669c861b PS: add step5_tco.
Update step4 function definition to match.
2014-03-29 18:35:22 -05:00