1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-11 13:55:55 +03:00
mal/python
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 python: Correct spelling in a test comment. 2019-07-07 10:31:36 +01:00
core.py Test uncaught throw, catchless try* . Fix 46 impls. 2018-12-12 14:18:26 -06:00
Dockerfile Dist/packaging for most impls. erlang, racket *ARGV* fixes. 2016-02-24 00:45:40 -06:00
env.py All: split types into types, env, printer, core. 2014-04-02 22:23:37 -05:00
Makefile Convert to loccount based stats calculation. 2019-03-20 23:34:21 -05:00
mal_readline.py All: move metadata, atoms, readline, conj to stepA. 2015-03-14 17:17:14 -05:00
mal_types.py Test uncaught throw, catchless try* . Fix 46 impls. 2018-12-12 14:18:26 -06:00
printer.py ps, python: fix keyword? on empty string. 2016-02-15 09:30:16 -06:00
reader.py perl, python, tcl: Correctly detect more unterminated strings. 2019-05-08 22:47:34 +01:00
run Generic <impl>_MODE setting. Add travis modes. 2017-09-11 17:54:26 -05:00
step0_repl.py All step0: add test, fix bugs, remove step0 eval. 2015-03-07 09:04:07 -06:00
step1_read_print.py All step0: add test, fix bugs, remove step0 eval. 2015-03-07 09:04:07 -06:00
step2_eval.py Fix empty list eval in step2 for most languages. 2016-04-02 18:40:49 -05:00
step3_env.py All: add keywords. 2015-01-09 16:16:50 -06:00
step4_if_fn_do.py All: add keywords. 2015-01-09 16:16:50 -06:00
step5_tco.py Misc fixes and TODO updates. 2017-09-15 00:00:23 -05:00
step6_file.py load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step7_quote.py load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step8_macros.py load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step9_try.py load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
stepA_mal.py load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00