1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 01:57:09 +03:00
Commit Graph

9 Commits

Author SHA1 Message Date
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
Nicolas Boulenguez
26ced15b31 Remove gensym, inc and or from step files.
* Move `gensym` and `inc` from step files to `lib/trivial.mal`.
* Move `or` from step files to `lib/test_cascade.mal`.
  Shorten it because `(first ())` returns `nil`
* Update process and tests accordingly (not the figures yet).
2019-07-09 14:05:29 +02:00
Joel Martin
dd7a4f55f3 Test uncaught throw, catchless try* . Fix 46 impls.
Fixes made to: ada, c, chuck, clojure, coffee, common-lisp, cpp,
crystal, d, dart, elm, erlang, es6, factor, fsharp, gnu-smalltalk,
groovy, guile, haxe, hy, js, livescript, matlab, miniMAL, nasm, nim,
objc, objpascal, ocaml, perl, perl6, php, plsql, ps, python, r,
rpython, ruby, scheme, swift3, tcl, ts, vb, vimscript, wasm, yorick.

Catchless try* test is an optional test. Not all implementations
support catchless try* but a number were fixed so they at least don't
crash on catchless try*.
2018-12-12 14:18:26 -06:00
Vasilij Schneidermann
7cabea4f75 elisp, chuck, pil, gst, scheme: Add number?, fn?, macro? 2017-10-10 18:29:36 +02:00
Vasilij Schneidermann
1b349ccb6c Add run script, fix argv bug 2016-08-06 23:58:49 +02:00
Vasilij Schneidermann
35163c1b32 Self-hosting fix 2016-08-06 22:41:00 +02:00
Vasilij Schneidermann
2e3d457eb0 Add a self-made readline implementation 2016-08-06 17:47:13 +02:00
Vasilij Schneidermann
98c1ecf2a1 Implement step 9 2016-08-06 00:34:18 +02:00
Vasilij Schneidermann
65634b37d4 Implement step 8 2016-08-01 10:40:32 +02:00