Alex Shinn
9d2875b05e
Merge branch 'master' into identifier-macros
2022-03-15 19:47:40 +09:00
Daphne Preston-Kendal
9a0212efff
Move identifier-syntax to (chibi ast)
2022-03-15 10:27:56 +01:00
Alex Shinn
fae48a3790
properly handling negation of complex numbers with ratio parts (fixes issue #815 )
2022-02-22 17:55:54 +09:00
Alex Shinn
82d61b3d8e
make mixed inexact/exact ordering consistent, converting to exact for fixnums and ratios instead of just bignums (issue #812 )
2022-02-12 07:50:58 +09:00
Daphne Preston-Kendal
abda243d21
Add identifier macro tests to syntax-test.scm
2022-02-04 11:28:31 +01:00
Alex Shinn
07358ff8b7
don't allow trailing data after the number in string->number, even if a valid delimiter (fixes issue #811 )
2022-02-04 12:34:55 +09:00
Alex Shinn
1f0f07114b
fix sqrt of complex negative zero (issue #785 )
2021-11-07 09:55:24 +09:00
Lukas Böger
cbf8cfb392
remove unused variable
2021-07-23 22:19:27 +01:00
Alexei Lozovsky
cc23efac16
Initialize variables in FFI tests
...
These ones are used to compute averages. If they are not initialized to
zero, they might contain some garbage. In fact, they almost always do
on platforms other that x86_64, failing the FFI tests. If optimizations
are enabled, these tests usually fail on x86_64 too. The reason this
went unnoticed is contrived set of coincidences.
2021-06-06 11:19:52 +09:00
Alex Shinn
12ad1d37d8
add docs and tests for assert, unify with SRFI 145
2021-05-06 20:34:03 +09:00
Alex Shinn
4d22949f71
disable fileno unification by default
2021-04-27 18:30:43 +09:00
Lassi Kortela
7178d22928
Add SRFI 219: Define higher-order lambda
2021-04-18 12:21:32 +03:00
Alex Shinn
e3078a7c4c
start lambda source info at bytecode pos -1
2021-04-08 22:59:18 +09:00
Alex Shinn
9f0ed1a869
Revert "Implement SRFI 193: Command lines"
2021-01-24 19:57:55 +09:00
Alex Shinn
751675c6b2
Merge pull request #619 from lassik/command-lines
...
Implement SRFI 193: Command lines
2021-01-24 16:44:35 +09:00
Alex Shinn
4ef6c57d3e
propagating #i prefix across radix prefixes (issue #706 )
2020-09-22 17:37:22 +09:00
Alex Shinn
dc524feabc
add missing trailing ? on SRFI 144 inequality ops
2020-08-11 10:37:23 +09:00
Lassi Kortela
65b197f7de
Implement SRFI 193: Command lines
2020-08-03 13:24:18 +03:00
Alex Shinn
23e62275df
fixing scheme bytevector for 32bit arch
2020-07-28 15:09:40 +09:00
Alex Shinn
0f5f552b6d
adding ffi unit tests for arrays of pointers
2020-07-24 15:51:12 +09:00
Alex Shinn
bcbed04b3b
fixing pretty-printed circular lists
2020-07-20 16:38:48 +09:00
Kris Katterjohn
eb9d632dbf
Fix some NaN comparisons: NaNs are not less than every fixnum
...
(< +nan.0 n) was yielding #t for fixnum n, and similarly for
(<= +nan.0 n) and (> n +nan.0) and so on. This also caused
(negative? +nan.0) to return #t.
It just happened that NaNs were less than all fixnums: if a
conditional was written the other way around then NaNs would
have been greater than all fixnums instead.
The flonum case was sort of "accidentally" correct, but if a
conditional was written the other way around then NaNs would
be both less than or equal to and greater than all or equal
to all flonums (but still not equal).
For both cases check for NaNs after getting the flonum values.
2020-07-10 16:49:56 -04:00
Alex Shinn
89a5b97e3c
remove duplicate tests
2020-06-27 07:13:07 +09:00
Alex Shinn
e8f1233e18
cleaning up test names
2020-06-19 17:37:55 +09:00
Alex Shinn
32580be0ff
fixing test-build on static exe
2020-06-08 11:59:16 +09:00
Alex Shinn
1ee773fa42
adding srfi 146 to lib tests
2020-05-26 17:09:21 +09:00
Ekaitz Zarraga
64d04f0638
Add JSON tests
2020-05-20 13:11:12 +02:00
Vitaliy Mysak
9c680217d7
tests: add std=c89 as build option
...
Since chibi already compiles with c89,
it should not be too bad to maintain this compatibility.
2020-05-13 11:12:02 +02:00
Marc Nieper-Wißkirchen
15b3449b85
Implement SRFI 158.
2020-05-05 22:28:10 +02:00
Alex Shinn
f74c34b99b
make-promise is idempotent (issue #625 )
2020-04-10 17:17:29 +09:00
Alex Shinn
a88a1ad244
adding ffi test with unsigned-char param
2020-01-27 22:19:51 +08:00
Alex Shinn
48d6c35548
nans aren't rational
2020-01-02 22:40:49 +08:00
Alex Shinn
c174465aa1
fix rational? for some boundary cases
2020-01-02 22:35:33 +08:00
Alex Shinn
d79f557d46
fix variadic foreign functions with more than 4 params
2019-12-19 23:58:51 +08:00
Alex Shinn
72971fd4f4
pipes should be escaped in symbols (fixes issue #571 )
2019-09-23 11:53:54 +08:00
Vasilij Schneidermann
ab39f12904
Consider unterminated strings as read-error
2019-05-17 10:55:22 +02:00
Alex Shinn
26ceb64434
fix exact neg check for ratio in rounding (issue #539 )
2019-05-03 00:37:30 +08:00
Alex Shinn
a126417ebe
fleshing out srfi 160 api
2019-02-26 23:08:52 +08:00
Alex Shinn
9569460a58
add compile-time option to store precomputed index->cursor tables for strings
2019-01-26 05:35:27 +08:00
Alex Shinn
2b4394ea74
adding initial support for SRFI 160 uniform vectors
2019-01-15 23:43:50 +08:00
Alex Shinn
336a69a416
-R needs interpreter name, not SRFI 22
2019-01-01 23:18:49 +08:00
Alex Shinn
43d6d20598
fix -xchibi.primitive and spurious output in snow-chibi (thanks Martin Hayman)
2018-12-28 23:29:13 +08:00
Alex Shinn
2c37dfedd3
Merge pull request #500 from mnieper/syntax-case
...
Implement syntax-case
2018-12-09 04:08:31 +08:00
Alex Shinn
d513bdc977
adding floating point utils for bytevectors
2018-12-04 00:43:08 +08:00
Marc Nieper-Wisskirchen
152b20f244
Implement syntax-case
2018-12-01 13:48:25 +01:00
Hamayama
fdc1f86f09
Fix syntax-rules on ellipsis escape templates
2018-07-03 12:41:00 +09:00
Bertrand Augereau
952d7c806b
More portable bignums that don't have to rely on gcc 128bit arithmetics extension
...
SEXP_USE_CUSTOM_LONG_LONGS currently needs SEXP_64_BIT
2018-06-19 04:46:05 +02:00
Alex Shinn
10ed000e1b
Merge pull request #469 from jacius/invalid_apply
...
Raise error if apply is called with invalid args.
2018-04-15 22:02:14 +09:00
John Croisant
42dd447a06
Raise error if apply is called with invalid args.
...
* If called with only the procedure, but no args list.
* If called with a final arg that is not a proper list.
2018-04-14 20:49:03 -05:00
Alex Shinn
d8e2e4aa54
add support for user-defined error types and functions in ffi, address-of, frameworks
2018-04-14 23:22:02 +09:00