Alex Shinn
c026c0884d
Encode JSON null as the symbol 'null.
...
Closes #893 .
2023-02-16 21:32:35 +09:00
Alex Shinn
598dcad547
Error on using only to import an unexported binding.
...
Closes #865 .
2023-01-28 15:47:37 +09:00
Daphne Preston-Kendal
97adffc8b5
Make macro-aux safe for other things together with syntax-case
...
If you set the macro-aux of a macro outside of (chibi syntax-case), it
would previously case `syntax` to think that it was a pattern variable
and try to substitute it, even if the macro-aux was being used for
something else.
This patch fixes that by wrapping pattern variable values in an extra
typed box and checking that it has the right type before deciding that
it’s actually a pattern variable.
2022-10-26 11:04:23 +02:00
Alex Shinn
ad4dfcb77b
add package-page snow-fort utility
2022-10-19 17:53:59 +09:00
Alex Shinn
b1750cee57
Merge pull request #868 from arthurgleckler/master
...
Fix bug: attributes without values didn't work.
2022-10-12 16:44:55 +09:00
Arthur A. Gleckler
73875cbaf7
Fix bug: attributes without values didn't work.
...
Before, it was necessary to do something like this:
(option (@ (selected . #false) (value "any")) "any")
instead of:
(option (@ (selected) (value "any")) "any")
Only the former is valid SXML, as far as I can tell from the SXML
specification:
<https://dl.acm.org/doi/pdf/10.1145/571727.571736 >
2022-10-11 21:22:39 -07:00
Alex Shinn
6d58f9e3f6
Merge pull request #867 from arthurgleckler/master
...
Add support for SXML indentation on output.
2022-10-11 23:19:52 +09:00
Arthur A. Gleckler
24339e51e7
Update variable name per Alex's suggestion.
2022-10-11 07:17:31 -07:00
Alex Shinn
fa6d4f7a4f
Adding sxml tests.
2022-10-11 22:42:54 +09:00
Alex Shinn
0a050a524a
Improve let-keywords docs and add unit tests (issue #866 ).
2022-10-11 22:32:32 +09:00
Arthur A. Gleckler
4e24ad01e0
Add support for SXML indentation on output.
2022-10-10 13:34:27 -07:00
Alex Shinn
49f95dc107
Fix bug in procedure-flags in (chibi ast) (issue #864 )
...
We were incorrectly boxing an already boxed value.
2022-10-05 09:06:51 +09:00
Alex Shinn
0eeeac7650
Make environment immutable and add mutable-environment alternative (issue #863 ).
2022-10-04 16:07:36 +09:00
Alex Shinn
e88374aae1
typo s/df/fd ( fixes #861 )
2022-09-26 22:37:51 +09:00
Alex Shinn
95827a44ed
Add immutable-string with copy-on-write semantics (issue #860 ).
2022-09-16 18:18:20 +09:00
Lockywolf
6bb62979fd
Make (shell) in (chibi shell) return exit status of last command.
2022-08-24 13:17:37 +08:00
Alex Shinn
f367cb86e2
signal an error when we can't change-directory in with-directory (issue #850 )
2022-08-11 21:56:35 +09:00
Alex Shinn
7e0b2730f4
snow-post should quote values
2022-08-09 18:43:51 +09:00
Alex Shinn
9993b27486
make-request path should be a string even in failure case
2022-08-09 14:02:19 +09:00
Alex Shinn
51beea2bb6
adding more warnings for bad repos (issue #846 )
2022-08-08 18:59:50 +09:00
Alex Shinn
1f1b361010
Using Makefile-configured snow install directories.
2022-08-08 18:43:30 +09:00
Lockywolf
bf1703e511
Fix scribble documentation for shell.scm
2022-08-03 23:21:50 +08:00
Alex Shinn
70acbf5a08
fix indentation
2022-08-03 22:44:28 +09:00
Alex Shinn
2f50a6cf74
Merge pull request #848 from lockywolf/crutch-for-relative-install-lib-dir
...
Add a crutch to better detect snow binary extension dir.
2022-08-03 22:42:40 +09:00
Lockywolf
ac5c10c114
Add a crutch to better detect snow binary extension dir.
2022-08-03 21:40:48 +08:00
Alex Shinn
66deb6fe3b
install-data-file should return the installed path
2022-08-03 22:38:07 +09:00
Alex Shinn
568519bf6b
fleshing out I/O redirection and adding docs
2022-07-29 18:50:42 +09:00
Alex Shinn
1b0566b759
add io redirection to syntax
2022-07-29 07:30:35 +09:00
Alex Shinn
1bea865ec2
more shell utilities
2022-07-16 21:55:59 +09:00
Alex Shinn
bc18b0cc30
allow custom option types for (chibi app)
2022-07-09 14:59:34 +09:00
Alex Shinn
d03202407b
fix pipe example
2022-07-09 14:59:17 +09:00
Alex Shinn
658244d64e
Add WIP shell library.
2022-07-01 22:39:27 +09:00
Alex Shinn
f5d96939b6
adding optional child-prod arg to call-with-process-io
2022-06-19 08:30:45 +09:00
Alex Shinn
4d0ae090b7
http-send-file default mime type should be application/octet-stream
2022-06-12 10:02:38 +09:00
Alex Shinn
d4eb32f8b1
bounds check for parse-stream-debug-info on empty input (fixes issue #826 )
2022-04-18 08:55:06 +09:00
Sören Tempel
5fe400c688
(chibi parse): allow (optionally) passing custom fk to parse-commit
...
Without this patch, parse-commit will unconditionally use a faillure
continuation which simply returns `#f`. This may be undesirable in
some situations. As such, this commit allows (optionally) passing
a custom failure continuation as a second argument. If none is passed
the old behavior is used, hence this commit doesn't cause any backwards
incompatible API changes.
See #822
2022-04-11 18:03:24 +02:00
Damien Diederen
1702162e1f
lib/chibi/diff.scm: Fix string ANSI coloring call
2022-04-10 22:44:24 +02:00
Sören Tempel
1503217e86
(chibi parse): Ensure reason is always a string
...
While testing a `(chibi parser)`-based parser I noticed that
`parse-string` is the only provided parser combinator which uses a list,
instead of a string, as a failure reason. It is not explicitly
documented but since all other standard parser combinator use a string
for the error reason I assume this to be a bug and have adjusted the
`parse-string` combinator accordingly in this commit.
2022-04-09 10:55:20 +02:00
Alex Shinn
9fe1e69c23
partial fix for issue #816
2022-03-15 23:45:59 +09:00
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
Daphne Preston-Kendal
7a4e793e49
Move make-variable-transformer to (chibi ast)
2022-03-15 09:25:21 +01:00
Alex Shinn
c5cfc5cded
fix missing newline in test line wrapping output
2022-02-24 22:43:49 +09:00
Daphne Preston-Kendal
51b0203dc5
Ditch the syntax-case version of identifier-syntax now it’s in core
2022-02-04 10:40:21 +01:00
Daphne Preston-Kendal
d769a7970c
Wrap identifier-syntax output in make-transformer
2022-01-03 09:50:07 +01:00
Daphne Preston-Kendal
4a3c7eaf1f
Support identifier-syntax in (chibi syntax-case)
2021-12-30 10:58:26 +01:00
Alex Shinn
6615a74609
undoing unintended commit
2021-12-29 14:27:49 +09:00
Alex Shinn
b769a318ef
use unsigned char* in sexp_update_string_index_lookup (fixes issue #804 )
2021-12-29 11:55:58 +09:00
Alex Shinn
ab29a2b973
skip common prefix/suffix in diff
2021-12-28 16:07:43 +09:00
Alex Shinn
71cc9b0d3c
add make-procedure to (chibi ast)
2021-12-02 22:02:03 +09:00