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

443 Commits

Author SHA1 Message Date
Stephen Thirlwall
86eae5ec38 Revert { X } -> ( hash-map X ) reader macro
The macro breaks the step 2 tests.
2015-03-28 15:20:04 +11:00
Stephen Thirlwall
f01c26838d Replace table iterations with new for-loop syntax
Didn't even know this existed!
2015-03-28 12:41:54 +11:00
Stephen Thirlwall
79f8ce3ec5 Add C++ packages to tests/docker/Dockerfile
Thought I'd already done this. Must've got lost in all the rebasing...
2015-03-28 12:41:45 +11:00
Stephen Thirlwall
778f6278b7 Use g++-4.9 instead of clang-3.5 on Linux
Using the linker fix from @kanaka
2015-03-28 12:17:25 +11:00
Stephen Thirlwall
fc9009e076 Fix Reader issues on Linux
* use regex_search rather than regex_iterator

* use multiple individual whitespace and token regexes,
  rather than one giant regex

This appears to work on 14.10 and 15.04
2015-03-28 11:47:00 +11:00
Stephen Thirlwall
e78c38d020 Add README.md 2015-03-27 20:44:43 +11:00
Stephen Thirlwall
cb25284585 c++11: step A 2015-03-27 20:44:43 +11:00
Stephen Thirlwall
2f61492a1e c++11: step 9 2015-03-27 20:44:43 +11:00
Stephen Thirlwall
3a8e11b85b c++11: step 8 2015-03-27 20:44:43 +11:00
Stephen Thirlwall
5f8f337a42 c++11: step 7 2015-03-27 20:44:43 +11:00
Stephen Thirlwall
ad50bab2e5 c++11: step 6 2015-03-27 20:44:42 +11:00
Stephen Thirlwall
ff15fb140a c++11: step 5 2015-03-27 20:44:42 +11:00
Stephen Thirlwall
ad0fc149de c++11: step 4 2015-03-27 20:44:42 +11:00
Stephen Thirlwall
dc9b184b66 c++11: step 3 2015-03-27 20:44:42 +11:00
Stephen Thirlwall
179e8eafe4 c++11: step 2
Note that the optional tests for step 1 now fail because I no longer create a
hash directly in the reader, rather handle this as a reader macro:

    { LIST } -> ( hash-map LIST )

This way, once the constructor has built the hash-map, the hash is now evaluated,
and its evaluation procedure is a no-op.

I'd like to do the same with vectors, but this isn't so easy, as we use vectors
as parameter lists in fn* later on.

ie. we'd have this situation, which is incorrect (and I don't see an obvious workaround)

    (fn* [params] body) -> (fn* (vector params) body)
2015-03-27 20:44:42 +11:00
Stephen Thirlwall
8bd091e3ad c++11: step 1 2015-03-27 20:44:42 +11:00
Stephen Thirlwall
9ddaa0b91b c++11: step 0 2015-03-27 20:44:42 +11:00
Joel Martin
bd62ff74cf guide: most of step 9 and start step A. 2015-03-25 20:53:53 -06:00
Joel Martin
8b142f0828 Swift: lang cnt to 28, note XCode, skip in docker.
- Update the README to 28 languages.
- Note that Swift impl currently requires XCode/OS X :-(
- Add Swift to skip list in Dockerfile.
2015-03-24 09:29:53 -06:00
Joel Martin
fbeb6f4b78 Merge pull request #49 from keith-rollin/swift
Initial Swift implementation.
2015-03-24 09:23:47 -06:00
Joel Martin
e37d9b4960 guide: step9 core functions. 2015-03-23 10:37:58 -06:00
Keith Rollin
2539e6af82 Initial Swift implementation. 2015-03-23 01:23:27 -07:00
Joel Martin
20c05e3561 racket: fix apply/vector
- re-order apply/vector tests into optional section.
2015-03-22 14:43:26 -05:00
Joel Martin
584cc3e170 Merge pull request #47 from sdt/step9-apply-vector-test
Step 9 test cases for apply on vectors
2015-03-22 14:27:45 -05:00
Stephen Thirlwall
3fcc9c8d01 Step 9 test cases for apply on vectors 2015-03-22 22:45:45 +11:00
Joel Martin
2345a3da8c guide: expand step1 deferrables and some of step 9. 2015-03-20 17:30:56 -05:00
Joel Martin
d2f0f672f4 runtest.py: allow repeated form in output.
This should fix (or rather, workaround)
https://github.com/kanaka/mal/issues/30 where on OS X the input form
is occasionally echo'd twice for some reason.
2015-03-20 08:40:46 -05:00
Joel Martin
bf2cb97aaa C: remove extraneous glib includes. 2015-03-20 08:35:53 -05:00
Joel Martin
78a2c11023 Merge pull request #46 from neutralevil/osx_c
C: fix compilation errors and warnings for the official toolchain of OSX...
2015-03-20 08:35:14 -05:00
Liu Bin
b81b2a7e8e C: fix compilation errors and warnings for the official toolchain of OSX. 2015-03-20 17:38:22 +08:00
Joel Martin
b020aa3e77 runtest: exit when child process exits.
Fixes: https://github.com/kanaka/mal/issues/40

- Simplify exception handling by combining keyboard exception into
  other exception handler. Print out output buffer on all exceptions.
2015-03-19 10:49:36 -05:00
Joel Martin
82acd3de8b runtest: set PERL_RL=false, remove --raw.
Thanks to suggestion from Stephen Thirlwall
(99ec06dd23 (commitcomment-10278903))
2015-03-19 08:00:28 -05:00
Joel Martin
99ec06dd23 Perl: still seems to need --raw in some situations. 2015-03-18 23:57:52 -05:00
Joel Martin
92dcc81529 runtest: set INPUTRC to /dev/null
- try and avoid any strange readline init script settings.
2015-03-18 23:51:14 -05:00
Joel Martin
0afb3ee867 Dockerfile: make Nim build one layer.
Save couple hundred MB or so.
2015-03-18 14:51:32 -05:00
Joel Martin
b3c30da9fc runtest: set pty size to fix readline of long lines.
- Also, add a long line test to step0 tests.
- Fix java step0 arg parsing.
- Fix postscript long line reads (larger buffer)
- Add mal step0_repl
2015-03-18 13:08:08 -05:00
Joel Martin
798206accb java,lua,perl: with TERM=dumb, --raw not needed
- Only mono based implementations (C#, VB) still need this.
2015-03-18 09:01:01 -05:00
Joel Martin
8caf621154 runtest: set TERM=dumb, remove --mono mode 2015-03-18 08:47:01 -05:00
Joel Martin
6b9eb18e01 tests: move reorder tests to better match guide. 2015-03-18 08:12:19 -05:00
Joel Martin
8d8ca1f079 FAQ: add question anchors. 2015-03-17 10:30:07 -05:00
Joel Martin
d10aeb1d13 Merge pull request #45 from sdt/typofix-perl-clone
Test case & fix for typo in Perl _clone implementation
2015-03-16 19:57:15 -05:00
Stephen Thirlwall
af59640b3c Fix typo in perl _clone()
I stumbled over this cun-t-paste error in the perl implementation.
2015-03-17 11:14:13 +11:00
Stephen Thirlwall
ba53efc2b5 Add test that (with-meta X ...) returns an X 2015-03-17 11:14:13 +11:00
Joel Martin
11df60ad8c Merge pull request #44 from sdt/step9-typo-fix
Remove extra ) from step9 test snippet
2015-03-16 09:51:21 -05:00
Joel Martin
e4c4b6b625 Merge pull request #43 from sdt/step9-apply-user-fn-test
Step 9 apply tests test user fns as well as core
2015-03-16 09:50:47 -05:00
Stephen Thirlwall
617bdb3552 Remove extra ) from step9 test snippet
My reader complains if there is extra input after the top-level
read_form, so this test was inadvertently failing for me.
2015-03-16 16:55:34 +11:00
Stephen Thirlwall
58002e1bf3 Step 9 apply tests test user fns as well as core
I had a bug in my apply core function. It worked for core functions, but
not for user-defined functions.

This bug escaped direct testing, but caused problems in self-host
testing.

Here's a couple of simple test cases that catch those errors.
2015-03-16 16:49:28 +11:00
Joel Martin
1e66ee3f4e FAQ: minor cleanup/grammar. 2015-03-15 15:47:23 -05:00
Joel Martin
144f2b6aec README: link to FAQ and mention #mal (freenode). 2015-03-15 15:41:11 -05:00
Joel Martin
81f5db50ad FAQ: mal history and new impl. merge guidelines. 2015-03-15 15:35:54 -05:00