Alex Shinn
3c4ace142c
propagate source info manually in let (issue #835 )
2022-05-29 08:03:32 +09:00
Daphne Preston-Kendal
c28bbbaa98
Fix definition of full-match?
...
Fixes #816
2022-03-16 09:16:19 +01:00
Alex Shinn
9fe1e69c23
partial fix for issue #816
2022-03-15 23:45:59 +09:00
Alex Shinn
4382b9d3fd
allow syntax-rules to work with reference patterns
2022-03-15 19:06:49 +09:00
Alex Shinn
9cd9ec1cda
fix mapn error message
2021-12-28 15:19:10 +09:00
Alex Shinn
6e636594a5
simplify opt-lambda def; copy list tail for rest arguments
2021-11-25 22:01:59 +09:00
Alex Shinn
1eee928e67
allow non-optional bindings in let-optionals[*]
2021-11-25 00:14:15 +09:00
Alex Shinn
a14f2d179a
rename bare let in case expansion (issue #772 )
2021-08-14 00:03:01 +09:00
Alex Shinn
6cafda8916
Decouple syntax-case from the Chibi core.
...
This restores third-party (ab)users of the Chibi macro system such
as in https://gist.github.com/baguette/2632464 , while allowing us
to break those uses in more interesting ways.
It also keeps the core slightly smaller (both in C and Scheme)
and speeds up the macro expansion process.
2021-08-10 23:19:35 +09:00
Marc Nieper-Wißkirchen
1f9b4796d6
Parse syntax-rules more strictly
...
See issue #767 .
2021-08-03 17:05:37 +02:00
Alex Shinn
18d0adf13b
signal error on improper lists passed to map/for-each
2021-07-28 17:00:40 +09:00
Alex Shinn
e307c872bf
fix include-ci (issue #687 )
2020-08-23 00:23:27 +09:00
Alex Shinn
d593a5cb0a
death to tabs
2020-07-28 15:26:42 +09:00
Kris Katterjohn
948252517f
Check the number of args to delay and delay-force
2020-07-08 19:15:06 -04:00
Alex Shinn
507e62c3e1
add safety checks on substring-cursor
2020-02-06 23:09:33 +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
Kris Katterjohn
ea92d228b3
memv: compare using eqv? instead of equal?
...
memv has been defined to be member, so it has been comparing
using equal? (by default) instead of eqv?.
2019-09-23 20:43:25 -05:00
Alex Shinn
597df2e931
missing space before quote (issue #545 )
2019-07-12 00:04:52 +08:00
Alex Shinn
017bb1c2a0
adding -Dsafe-string-cursors feature to perform extra checks on string cursors
2019-02-01 00:31:13 +08:00
Marc Nieper-Wisskirchen
5c963df96f
Move datum->syntax back to init-7.scm. Don't crash when renamer not present in syntactic closure.
2018-12-05 15:59:39 +01:00
Marc Nieper-Wisskirchen
152b20f244
Implement syntax-case
2018-12-01 13:48:25 +01:00
Hamayama
216d6a8d87
Revert and fix syntax-rules by reflecting review
2018-07-05 00:53:17 +09:00
Hamayama
fdc1f86f09
Fix syntax-rules on ellipsis escape templates
2018-07-03 12:41:00 +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
Hamayama
ae85ef2980
Several changes of syntax-rules in init-7.scm
2017-12-30 09:46:51 +09:00
Alex Shinn
bc3fa73ec4
adding unambiguous promise? to core
2017-11-08 22:56:02 +09:00
Alex Shinn
8f52f457d6
updating previous commit to include using bound=? to exlude literals from extracted pattern vars
2017-07-22 20:11:04 +09:00
Alex Shinn
e3678edbdc
Identifiers in patterns should be checked against literals using bound-identifier=?, not free-identifier=?.
2017-07-22 19:50:56 +09:00
Alex Shinn
db186784e3
don't include underscore in ellipsis pattern vars (issue #421 )
2017-07-02 22:10:03 +09:00
Alex Shinn
1e25dda078
preserving source info in quasiquote (restores line number reporting for (chibi test))
2017-05-07 14:26:49 +09:00
Alex Shinn
9fa8d8c1f0
Don't treat underscore as a pattern variable. Fixes issue #382 .
2017-01-01 09:48:34 +09:00
Alex Shinn
d0cb74bef4
Identifiers in the template should only match pattern variables
...
from the same expansion step. Fixes issue #366 .
2016-06-25 15:20:39 +09:00
Alex Shinn
1ec9d578d0
fixing number->string for non-full-numeric-tower builds
2016-03-30 22:33:29 +09:00
Alex Shinn
0c80f38a19
making string-cursors a disjoint type
2016-03-29 22:25:09 +09:00
Alex Shinn
57dd5464c5
Handling ratios, inexact and complex in number->string.
...
Fixes issue #317 .
2016-03-19 15:12:09 +09:00
Alex Shinn
45c03c5dcb
restoring renaming of ...
2016-03-05 00:28:09 +09:00
Alex Shinn
97297221fa
When an alternate syntax-rules ellipsis is specified, we must bind this
...
locally around the macro transformer. Fixes issue #313 .
2016-03-02 23:34:39 +09:00
Alex Shinn
fb78ec1d1c
removing double renaming of explicit ellipsis in syntax-rules
2016-02-27 16:14:10 +09:00
Alex Shinn
2922ed591d
Forgot to install regexp (patch from Lorenzo)
2015-01-26 08:06:59 +09:00