Skip to content

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