1
1
mirror of https://github.com/kanaka/mal.git synced 2024-11-09 18:06:35 +03:00
mal/cs
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 Tests: move step5 non-TCO tests to per impl. 2016-03-14 23:39:21 -05:00
core.cs coffee, clojure, cs: add number?, fn?, and macro? 2017-10-12 15:20:12 -07:00
Dockerfile Dist/packaging for most impls. erlang, racket *ARGV* fixes. 2016-02-24 00:45:40 -06:00
env.cs All: add keywords. 2015-01-09 16:16:50 -06:00
getline.cs All: show comments with stats target. 2015-10-26 22:33:49 -05:00
interop.cs All: swap step9,A. Fixes for bash, C, perl. 2015-01-06 21:57:24 -06:00
Makefile Convert to loccount based stats calculation. 2019-03-20 23:34:21 -05:00
printer.cs All: add keywords. 2015-01-09 16:16:50 -06:00
reader.cs cs, crystal, es6: Detect more unterminated strings. 2019-05-15 23:25:43 +01:00
readline.cs CS: add step1_read_print 2014-04-06 22:13:14 -05:00
run Refactor to use run scripts, remove *_RUNSTEP 2016-05-18 22:29:18 -07:00
step0_repl.cs All step0: add test, fix bugs, remove step0 eval. 2015-03-07 09:04:07 -06:00
step1_read_print.cs C#: use closure for RE func. Shorter type names. 2015-01-09 16:16:46 -06:00
step2_eval.cs All: add keywords. 2015-01-09 16:16:50 -06:00
step3_env.cs All: add keywords. 2015-01-09 16:16:50 -06:00
step4_if_fn_do.cs All: add keywords. 2015-01-09 16:16:50 -06:00
step5_tco.cs All: add keywords. 2015-01-09 16:16:50 -06:00
step6_file.cs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step7_quote.cs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step8_macros.cs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step9_try.cs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
stepA_mal.cs load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
types.cs hash-map equality: bash, c, coffee, cs, es6, ... 2015-11-16 23:28:58 -06:00