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

19 Commits

Author SHA1 Message Date
Joel Martin
185d4f0c25 ps, python: fix keyword? on empty string.
Issue #166.
2016-02-15 09:30:16 -06:00
Joel Martin
a968e287c1 make, ps, ruby: add seq/string?
Issue #166
2016-02-11 13:57:49 -06:00
Dov Murik
798cd0a0e3 ps: fix hash-map equality
* extract _keys and _hash_map_get to types.ps
* correct sequential types equals - only compare if *both* arguments are
  sequential
* implement equality for two hash-maps
2015-11-17 21:19:30 -05: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
b8ee29b22f All: add keywords.
Also, fix nth and count to match cloure.
2015-01-09 16:16:50 -06:00
Joel Martin
db4c329aff All: perf test, Makefile refactor, add *host-language*
Other:
- bash,make,postscript: quasiquote of vectors
- Fix Java slurp
- add time function to core.mal
    - switches on *host-language* for make time-secs vs time-ms
- Ignore */experiments directories
2014-04-17 21:49:07 -05:00
Joel Martin
0027e8fed4 PS: fix function closures. Self-hosted up to step7. 2014-04-14 22:46:54 -05:00
Joel Martin
e7c1a2f62b PS: fix string escaping. Passes all tests. 2014-04-06 15:53:19 -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
2e05535fa0 PS: fix string length calc for printing integers. 2014-03-29 18:34:10 -05:00
Joel Martin
0a2c69544b PS: add step4_if_fn_do 2014-03-29 18:20:07 -05:00
Joel Martin
aef93ea396 PS: error handling, throw, print excpetions without dying. 2014-03-29 17:35:53 -05:00
Joel Martin
04517bc826 PS: add step3_env 2014-03-29 17:26:07 -05:00
Joel Martin
55e2bfa8a3 PS: step2_eval 2014-03-29 17:01:24 -05:00
Joel Martin
1b4a9012c5 PS: minimal step1_read_print 2014-03-29 15:56:20 -05:00