1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-19 17:47:53 +03:00
mal/forth
Nicolas Boulenguez e6d41de4d5 load-file: accept empty file or final comment, return nil
Let `load-file` append a new line in case last line contains a
comment.

Also append `nil` so that the return value is predictible. Remove the
existing explicit `nil` from existing sources.

Adapt documentation and tests.
2019-07-28 13:08:05 +02:00
..
tests Runtest should fail on bad test data. Fix interop tests. 2019-01-28 10:27:41 -06:00
core.fs Forth Convert not from native to built-in. 2019-05-07 11:22:15 +02:00
Dockerfile Travis: add ocaml, forth and miniMAL. 2015-10-06 13:28:11 -05:00
env.fs forth: Clean up symbol eval for better perf 2015-02-23 22:22:04 -05:00
Makefile Convert to loccount based stats calculation. 2019-03-20 23:34:21 -05:00
misc-tests.fs forth: Add call-site caching to boost perf 2015-02-23 22:22:04 -05:00
printer.fs forth: don't print commas in hash-maps 2015-12-17 22:01:32 +02:00
reader.fs haxe, forth: fix negative numbers. 2016-02-26 21:54:07 -06:00
run Refactor to use run scripts, remove *_RUNSTEP 2016-05-18 22:29:18 -07:00
step0_repl.fs forth: fix errors/reporting in steps 1-8. 2018-11-30 14:57:45 -06:00
step1_read_print.fs forth: fix errors/reporting in steps 1-8. 2018-11-30 14:57:45 -06:00
step2_eval.fs forth: fix errors/reporting in steps 1-8. 2018-11-30 14:57:45 -06:00
step3_env.fs forth: fix errors/reporting in steps 1-8. 2018-11-30 14:57:45 -06:00
step4_if_fn_do.fs Forth Convert not from native to built-in. 2019-05-07 11:22:15 +02:00
step5_tco.fs Forth Convert not from native to built-in. 2019-05-07 11:22:15 +02:00
step6_file.fs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step7_quote.fs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step8_macros.fs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step9_try.fs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
stepA_mal.fs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
str.fs forth: Add step 9, just try*/throw 2015-02-21 13:22:44 -05:00
types.fs forth: add seq and string? 2016-02-16 13:56:51 -06:00