1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-17 16:47:22 +03:00
mal/ruby
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.rb ruby: Add number?, fn?, macro? 2017-10-09 20:25:08 +00:00
Dockerfile Travis: add C, C#, Go, Perl, PHP, and Ruby. 2015-10-06 00:56:02 -05:00
env.rb Ruby: step4_if_fn_do with core functions. 2014-04-10 22:24:58 -05:00
Makefile Convert to loccount based stats calculation. 2019-03-20 23:34:21 -05:00
mal_readline.rb Tests: add testing Dockerfile. Impl fixes. 2015-03-11 22:22:35 -05:00
printer.rb Ruby: Updated for Ruby 1.9+ 2015-02-28 00:36:27 +01:00
reader.rb bash, ruby: Fix reading of unterminated strings that happen to end with '"'. 2019-05-08 22:47:34 +01:00
run Refactor to use run scripts, remove *_RUNSTEP 2016-05-18 22:29:18 -07:00
step0_repl.rb Ruby: Updated for Ruby 1.9+ 2015-02-28 00:36:27 +01:00
step1_read_print.rb Ruby: Updated for Ruby 1.9+ 2015-02-28 00:36:27 +01:00
step2_eval.rb Fix empty list eval in step2 for most languages. 2016-04-02 18:40:49 -05:00
step3_env.rb ruby: Fix exception on literal empty list 2016-03-27 22:16:59 -04:00
step4_if_fn_do.rb ruby: Fix exception on literal empty list 2016-03-27 22:16:59 -04:00
step5_tco.rb Misc fixes and TODO updates. 2017-09-15 00:00:23 -05:00
step6_file.rb load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step7_quote.rb load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step8_macros.rb load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step9_try.rb load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
stepA_mal.rb load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
types.rb make, ps, ruby: add seq/string? 2016-02-11 13:57:49 -06:00