1
1
mirror of https://github.com/kanaka/mal.git synced 2024-11-09 18:06:35 +03:00
mal/lua
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 lua: update to version 5.2 2019-01-28 13:31:28 -06:00
core.lua lua: update to version 5.2 2019-01-28 13:31:28 -06:00
Dockerfile lua: update to version 5.2 2019-01-28 13:31:28 -06:00
env.lua Lua: all steps and self-hosting. 2015-01-08 23:25:40 -06:00
Makefile Convert to loccount based stats calculation. 2019-03-20 23:34:21 -05:00
printer.lua lua: add meta support for builtin function 2015-07-22 17:59:11 +09:00
reader.lua gnu-smalltalk, go, js, lua, php, rust, ts: Detect more unterminated strings. 2019-05-16 22:06:02 +01:00
readline.lua Tests: add testing Dockerfile. Impl fixes. 2015-03-11 22:22:35 -05:00
run Refactor to use run scripts, remove *_RUNSTEP 2016-05-18 22:29:18 -07:00
step0_repl.lua All step0: add test, fix bugs, remove step0 eval. 2015-03-07 09:04:07 -06:00
step1_read_print.lua lua, nasm, perl, rexx, vimscript: fix errors. 2018-11-30 14:57:46 -06:00
step2_eval.lua lua: update to version 5.2 2019-01-28 13:31:28 -06:00
step3_env.lua lua: update to version 5.2 2019-01-28 13:31:28 -06:00
step4_if_fn_do.lua lua: update to version 5.2 2019-01-28 13:31:28 -06:00
step5_tco.lua lua: update to version 5.2 2019-01-28 13:31:28 -06:00
step6_file.lua load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step7_quote.lua load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step8_macros.lua load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step9_try.lua load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
stepA_mal.lua load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
types.lua lua: update to version 5.2 2019-01-28 13:31:28 -06:00
utils.lua Lua: all steps and self-hosting. 2015-01-08 23:25:40 -06:00