1
1
mirror of https://github.com/kanaka/mal.git synced 2024-11-09 18:06:35 +03:00
mal/ocaml
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.ml ocaml: Fix result of (concat [1 2]), so it returns a list not a vector. 2019-05-07 22:59:26 +01:00
Dockerfile Travis: add ocaml, forth and miniMAL. 2015-10-06 13:28:11 -05:00
env.ml OCaml: Add step 9 2015-01-30 12:54:43 -05:00
Makefile Convert to loccount based stats calculation. 2019-03-20 23:34:21 -05:00
printer.ml ocaml: don't print commas in hash-maps 2015-12-17 22:01:32 +02:00
reader.ml ocaml: Fix reading of unterminated strings that happen to end with '"'. 2019-07-23 09:46:43 +03:00
run Refactor to use run scripts, remove *_RUNSTEP 2016-05-18 22:29:18 -07:00
step0_repl.ml OCaml: add step 0 2015-01-30 12:54:42 -05:00
step1_read_print.ml Ocaml: Add string functions 2015-01-30 12:54:42 -05:00
step2_eval.ml OCaml: put macro flag in metadata rather than special type field 2015-01-30 12:54:43 -05:00
step3_env.ml ocaml: Fix exception on literal empty list 2016-03-28 15:13:05 -04:00
step4_if_fn_do.ml ocaml: Fix exception on literal empty list 2016-03-28 15:13:05 -04:00
step5_tco.ml Ocaml: Add step 5, TCO worked automatically in Ocaml 2015-01-30 12:54:43 -05:00
step6_file.ml load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step7_quote.ml load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step8_macros.ml load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
step9_try.ml load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
stepA_mal.ml load-file: accept empty file or final comment, return nil 2019-07-28 13:08:05 +02:00
types.ml ocaml: fix hash equality 2015-11-21 23:00:56 -05:00