1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-21 02:27:10 +03:00
Commit Graph

23 Commits

Author SHA1 Message Date
Joel Martin
b137ff4f44 make, swift3: fix parsing empty literal sequences.
Specifically the problem is that parsing sequence literals breaks if
there are only empty spaces between the opening and closing character.

This is to address issues found in: https://github.com/kanaka/mal/pull/372
2019-05-13 11:59:46 -05:00
Nicolas Boulenguez
14ab099cea gensym: hide the counter in an environment, define inc in stepA.
tests: check that `inc` is present in stepA.
nasm: split lines in mal_startup_string for readability.
objpascal: remove obsolete .orig file
swift: remove an unneeded line in template
swift4: remove duplicate definition of `or` macro
2019-05-11 16:37:26 +02:00
Joel Martin
c4269f9bf5 Convert to loccount based stats calculation. 2019-03-20 23:34:21 -05:00
Joel Martin
f29ccc407a fsharp, swift3: fix parsing of single '-'
Fixes https://github.com/kanaka/mal/pull/338
2019-01-30 11:54:57 -06:00
Joel Martin
4aa0ebdf47 Error on unterminated strings.
Add a step1 test to make sure that implementations are properly
throwing an error on unclosed strings.

Fix 47 implementations and update the guide to note the correct
behavior.
2019-01-25 16:16:06 -06: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
Dov Murik
f18417417c io, swift3, vb: Add number?, fn?, macro? 2017-10-17 05:55:04 +00:00
Joel Martin
da9aef124a Fix unescaping in lua, objc, php, powershell, swift3 and ts. 2017-09-28 07:40:47 -05:00
Joel Martin
42b8fe1683 Swift3: updates/fixes for Swift 3.0.1 2016-10-17 22:37:42 -05:00
Joel Martin
a3a6f68098 Swift3: update to Swift 3 Preview 3. 2016-07-31 23:25:23 -05:00
Fred Im
8903188f8b Squashed commits, updated to latest swift3 (swift-3.0-PREVIEW-2)
Main changes:
* consistency of func arguments, while every argument has both an outer and an inner name,
  but the first argument's outer was "unnamed" by default in swift<2. now all arguments are consistent
  and requires the initial "_" to declare the outer "unnamed" for the first argument
* indexes are now simpler types, the Array.index function computes successor/predecessor
* many, many API changes, that result in shorter "verb" names of functions with named arguments
  ex: Array.joinWithSeparator(String) -> Array.joined(separator: String)
2016-07-29 18:37:32 +00:00
Joel Martin
20e8dea043 Refactor to use run scripts, remove *_RUNSTEP
- Add */run script for every implementation.

- Refactor Clojure build to allow individual jar files for each step.

- Update FFI version for es6 and miniMAL to work with newer node
  versions.

The run scripts for the following could use some additional
refactoring:
- java: build individual step jar, use java -jar instead of mvn to run
- plpgsql: maybe combine plpgsql/run and plpgsql/wrap.sh
- vhdl: combine vhdl/run and vhdl/run_vhdl.sh
- vimscript: combine vimscript/run and vimscript/run_vimscript.sh
2016-05-18 22:29:18 -07:00
Keith Rollin
03a1b10937 Port swift3 to OSX. 2016-04-07 19:44:58 -07:00
Joel Martin
fc0cddfd2b swift3: fix empty list evaluation.
Part of #194.
2016-04-02 17:27:57 -05:00
Joel Martin
dca6b58578 Tests: move step5 non-TCO tests to per impl.
- Remove most of the step5 excludes in the Makefile except for ones
  which don't have TCO capability at all (or the implementation is too
  slow): bash, make, mal, matlab.

- Make perf_EXCLUDES consistent with other excludes.

- Add a print-FOO target which prints the resolved value of Makefile
  variable FOO. For example, `make print-IMPLS` to print the list of
  implementations.
2016-03-14 23:39:21 -05:00
Joel Martin
b8ab80ba3a Swift3: add meta to all collections. Simplify types.
Also, tweak swift stats targets to more align with others.
2016-03-01 14:58:59 -06:00
Joel Martin
c391c80cd8 Swift*: add seq/string?. swift: gensym/or macro fix 2016-02-24 16:49:25 -06:00
Joel Martin
aebe1e8c41 swift3: add missing time-ms function 2016-02-24 11:59:18 -06:00
Joel Martin
c07ccda22e add swift3/Dockerfile 2016-02-24 09:22:09 -06:00
Joel Martin
d5ccbd9975 swift3: dist rule 2016-02-24 00:47:37 -06:00
Joel Martin
6fc6e971d2 swift3: add missed updates to core/types 2016-02-24 00:47:16 -06:00
Joel Martin
0eace3df1f swift3: steps6-A, vectors, maps, keywords, meta.
Everything except conj and meta on lists, vectors and hash-maps.
2016-02-24 00:27:23 -06:00
Joel Martin
b50a410591 swift3: step0-step5 basics 2016-02-23 00:49:28 -06:00