-
-
Notifications
You must be signed in to change notification settings - Fork 32
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
macroexpand and nested syntax-rules #357
Comments
This is actually a collision of (define-syntax symbol
(syntax-rules ()
((_ name)
(let-syntax ((name (syntax-rules ()
((_)
(list 'name)))))
(name)))))
(print (symbol hello))
;; ==> (hello)
(pprint (macroexpand (symbol hello)))
;; ==> syntax-rules: no matching syntax in macro (symbol) |
jcubic
changed the title
You can't macroexpand macro that use syntax-parameterize
Variable collision in nested syntax-rules when using macroexpand
Mar 31, 2024
It's not a collision only macroexpand try to evaluate This is the problem that macroexpand know nothing about nested syntax-rules. That's why they don't expand at all. |
jcubic
changed the title
Variable collision in nested syntax-rules when using macroexpand
macroexpand and nested syntax-rules
Mar 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: