1
1
mirror of https://github.com/kanaka/mal.git synced 2024-11-09 18:06:35 +03:00
mal/d
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
Dockerfile d: support ldc2 and dmd modes from top-level. 2019-05-10 14:05:53 -05:00
env.d D: Get the code to compile with all three current d compilers 2019-05-09 22:52:23 +02:00
main.di D implementation 2015-12-02 15:53:02 -05:00
Makefile d: support ldc2 and dmd modes from top-level. 2019-05-10 14:05:53 -05:00
mal_core.d D: Get the code to compile with all three current d compilers 2019-05-09 22:52:23 +02:00
printer.d D implementation 2015-12-02 15:53:02 -05:00
reader.d d: Detect more unterminated strings. 2019-05-30 23:39:46 +01:00
readline.d D: Get the code to compile with all three current d compilers 2019-05-09 22:52:23 +02:00
run Refactor to use run scripts, remove *_RUNSTEP 2016-05-18 22:29:18 -07:00
step0_repl.d D implementation 2015-12-02 15:53:02 -05:00
step1_read_print.d D implementation 2015-12-02 15:53:02 -05:00
step2_eval.d Add build rules for dmd and ldc in addition to gdc. Update Dockerfile to install all three compilers. 2019-05-10 15:59:36 +02:00
step3_env.d D: Get the code to compile with all three current d compilers 2019-05-09 22:52:23 +02:00
step4_if_fn_do.d D: Get the code to compile with all three current d compilers 2019-05-09 22:52:23 +02:00
step5_tco.d D: Get the code to compile with all three current d compilers 2019-05-09 22:52:23 +02:00
step6_file.d load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step7_quote.d load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step8_macros.d load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step9_try.d load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
stepA_mal.d load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
types.d D: Get the code to compile with all three current d compilers 2019-05-09 22:52:23 +02:00