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

Basic syntax-rules macro #6

Open
jcubic opened this issue Jan 30, 2024 · 0 comments
Open

Basic syntax-rules macro #6

jcubic opened this issue Jan 30, 2024 · 0 comments

Comments

@jcubic
Copy link

jcubic commented Jan 30, 2024

I was just testing basic syntax-rules example:

(define-syntax quux
  (syntax-rules ()
    ((_ (x ... a b) ...)
     '((x ... b a) ...))))

(quux (1 2 3 4)
      (5 6 7 8)
      (9 10 11 12))

It should be evaluated to:

((1 2 4 3) (5 6 8 7) (9 10 12 11))

but Marwood evaluates into:

((1 2 5 6 9 10 4 3) (1 2 5 6 9 10 8 7) (1 2 5 6 9 10 12 11))

It seems that this library does not have enough unit tests. It seems that there is not even a single unit test for syntax-rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant