1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-17 16:47:22 +03:00
Commit Graph

3306 Commits

Author SHA1 Message Date
sogaiu
f0095064b9 Add Janet info to README and update counts 2021-04-22 08:49:40 +09:00
sogaiu
ba1e604220 Make more use of nil?* in core 2021-04-22 08:49:40 +09:00
sogaiu
0fb654787d Fix error message for = 2021-04-22 08:49:40 +09:00
sogaiu
7e9117f6dc Return empty vector from vec for nil arg 2021-04-22 08:49:40 +09:00
sogaiu
256c85b843 Improve mal-meta robustness 2021-04-22 08:49:40 +09:00
sogaiu
ad87da3e48 Ensure mal-janet-eval argument is a string 2021-04-22 08:49:40 +09:00
sogaiu
1b36a38751 Improve core fn naming consistency 2021-04-22 08:49:40 +09:00
sogaiu
07cacb1bb5 Replace copy-function by spawn-function 2021-04-22 08:49:40 +09:00
sogaiu
6b2315fe90 Handle nil coll arg for conj 2021-04-22 08:49:40 +09:00
sogaiu
82e13e7b7f Add some janet-eval tests 2021-04-22 08:49:40 +09:00
sogaiu
a441426acc More arity and type checking for core 2021-04-22 08:49:40 +09:00
sogaiu
9becb496e0 Move quasiquote et al to step files + changes 2021-04-22 08:49:40 +09:00
sogaiu
91d8b51a06 Report as error, not exception 2021-04-22 08:49:40 +09:00
sogaiu
29e3d674f5 Improve arity and type checking for core 2021-04-22 08:49:40 +09:00
sogaiu
8ab965f350 Make cmp fns handle zero or more args 2021-04-22 08:49:40 +09:00
sogaiu
df265d1b65 Make arith fns handle zero or more args 2021-04-22 08:49:40 +09:00
sogaiu
30636e9c54 Handle single arg case for apply 2021-04-22 08:49:40 +09:00
sogaiu
e76dc6dcdb Add arity check for map 2021-04-22 08:49:40 +09:00
sogaiu
31cc1a3b41 Add Dockerfile 2021-04-22 08:49:40 +09:00
sogaiu
3d18094e14 Add janet-eval 2021-04-22 08:49:40 +09:00
sogaiu
7a0068468f Use number at low level to get os/clock working 2021-04-22 08:49:40 +09:00
sogaiu
4fefcae219 Add step A and changes 2021-04-22 08:49:40 +09:00
sogaiu
590c39031e Add step 9 and changes 2021-04-22 08:49:40 +09:00
sogaiu
f308b3277c Add step 8 2021-04-22 08:49:40 +09:00
sogaiu
ad98d8cc67 Add step 7 2021-04-22 08:49:40 +09:00
sogaiu
fdbfc7a195 Add step 6 2021-04-22 08:49:40 +09:00
sogaiu
7a0396faf7 Add step 5 2021-04-22 08:49:40 +09:00
sogaiu
553d02fb58 Add step 4 2021-04-22 08:49:40 +09:00
sogaiu
fc7e2b545d Add step 3 2021-04-22 08:49:40 +09:00
sogaiu
6fe7e45374 Add step 2 2021-04-22 08:49:40 +09:00
sogaiu
6dc2b12932 Add step 1 2021-04-22 08:49:40 +09:00
sogaiu
b5b3dee7de Add step 0 2021-04-22 08:49:33 +09:00
Joel Martin
17dc372dc4 Merge remote-tracking branch 'jamesroutley/patch-1' 2021-04-21 16:15:20 -05:00
Joel Martin
cbb8b57319 Add user dispatchable workflow definition.
This adds a event trigger for 'workflow_dispatch' so that a user can
trigger, via the web UI, a build/test for a subset of implementations.
2021-04-21 14:23:30 -05:00
Joel Martin
71412ebdd8 [cpp] space change to test Github actions. 2021-04-21 13:42:51 -05:00
Joel Martin
109862baa5 [bash] undo space change to test github actions. 2021-04-21 13:40:45 -05:00
Joel Martin
5142cb9c82 [bash] space change to test github actions. 2021-04-21 13:40:40 -05:00
Joel Martin
021d107db7 Refactor Github Actions/Travis CI
- Dynamically generate a strategy matrix based on the list of changed
  files in this push/pull_request. If the changed files are restricted
  to implementations then only generate a matrix with those
  implementations. If the changes are to tests or other
  non-documentation files (runtest.py, IMPLS.yml, .github/*, etc) then
  run the full set. The matrix generation is done in get-ci-matrix.py.
- Split the implementation list for Github Actions out into a separate
  yaml file IMPLS.yml
- Reduce the travis file to just the OS X / XCode related builds that
  aren't supported on Github Actions.
- Rename the .travis_test.sh script to ci.sh since it is the general
  CI script used for both Travis CI and Github Actions.
2021-04-21 13:36:54 -05:00
Vasilij Schneidermann
f0863c2cc7 Mention impls/quux instead of quux when needed
Closes #536
2021-04-19 16:47:11 -05:00
Joel Martin
f6dbdfb0a4 Add prolog to github actions workflow. 2021-04-19 09:55:57 -05:00
Nicolas Boulenguez
0ee1a51777 New SWI-prolog implementation
with, in stepA_mal.mal, a new way to pass all test and break
self-hosting nevertheless.
2021-04-19 09:53:22 -05:00
Ben Harris
f1c1cde289 Test that (= [] (vector)) and (= {} (hash-map)) are both true
The latter suggested by @dubek.  The first an obvious extension.
2021-04-19 09:07:24 -05:00
Ben Harris
b012e8f8e6 Test equality of other kinds of empty list
In #513, @dubek noted two additional ways to make empty lists in fantom
that compare different from an empty list made by evaluating an empty
list.  This adds tests for those, along with another two that might fail
similarly (but don't in fantom).
2021-04-19 09:07:24 -05:00
Ben Harris
c88a57fb3f step 4: Test that (= (list) ()) is true
In APL, empty arrays have type, and the ≡ function pays attention to
that, so if you're not careful empty lists produced by different means
compare different.  This test detects that by comparing an empty list
produced by "list" with one produced by evaluating an empty list.

My bug was found by a deferrable step 4 test, but the bug should be
non-deferrable.
2021-04-19 08:34:42 -05:00
Joel Martin
0baa2f6a8b github actions: run on pull_requests also. 2021-04-18 15:29:49 -05:00
Dov Murik
4bfe507386 fantom: Dockerfile: Use fantom 1.0.75 from github 2021-04-18 15:25:49 -05:00
Dov Murik
a29489e4ab fantom: defmacro! doesn't mutate original function 2021-04-18 15:25:49 -05:00
Dov Murik
f8c1c83ffe fantom: Fix "!" handling
Modify Java options to disable jLine handling of expand events (which
start with "!").  This will require re-building of the fantom docker
image.

The test that failed is now moved to the mandatory section of step1
tests.
2021-04-18 15:25:49 -05:00
Dov Murik
5064fdf7dc fantom: (keyword :abc) should return argument unchanged 2021-04-18 15:25:49 -05:00
Dov Murik
f436e64929 fantom: Remove unneeded 'return' keyword in closures 2021-04-18 15:25:49 -05:00