Skip to content

Add support for syntax-case and vanilla macro #6

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

wsxiaoys
Copy link

No description provided.

@wsxiaoys
Copy link
Author

@feeley I played with define-library a bit and figure out a way to make it work with syntax-case / macro.

Let me know if anything could be improved!

Thanks
Meng

@wsxiaoys
Copy link
Author

wsxiaoys commented Jan 3, 2017

kindly ping

@feeley
Copy link
Owner

feeley commented Jan 5, 2017

Hi. Can you explain how your code works? It seems to avoid preprocessing the macro definitions, in other words the syntax-rules and syntax-case forms are passed through without modification.

@wsxiaoys
Copy link
Author

wsxiaoys commented Jan 5, 2017

i added define-runtime-syntax for syntax-case / syntax. syntax-rules is already a runtime syntax.

(syntax-rules ...) -> (syn#syntax-rules-form-transformer ...) -> #'(##lambda (##src) (syn#apply-rules 'crules ##src))

@wsxiaoys
Copy link
Author

ping? you might run tests to ensure it's working

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

Successfully merging this pull request may close these issues.

3 participants