Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ellipsis expansion of list doesn't work in syntax-rules #2

Open
trb-a opened this issue Sep 8, 2021 · 1 comment
Open

Ellipsis expansion of list doesn't work in syntax-rules #2

trb-a opened this issue Sep 8, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@trb-a
Copy link
Owner

trb-a commented Sep 8, 2021

In SFRI-46:
(define-syntax fake-begin
(syntax-rules ()
((fake-begin ?body ... ?tail)
(let* ((ignored ?body) ...) ?tail))))
(fake-begin
(DISPLAY "Hello"))

fake-begin should work like begin, but this throws syntax-error.

EXPECTED OUTCOME
displays "hello".

ACTUAL OUTCOME
throws syntax-error.

ENVIRONMENT
Cumalis Lisp Version 0.6.0
Chrome Version 92 on Windows 10

@trb-a trb-a added the bug Something isn't working label Sep 8, 2021
@trb-a
Copy link
Owner Author

trb-a commented Sep 8, 2021

R7RS-small section 4.3 doesn't define this behavior clearly, but 7.3 is using this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant