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

Implement hygienic macros #22

Open
nlfiedler opened this issue Apr 1, 2013 · 2 comments
Open

Implement hygienic macros #22

nlfiedler opened this issue Apr 1, 2013 · 2 comments
Assignees
Milestone

Comments

@nlfiedler
Copy link
Owner

See section 4.3 of R7RS for a specification on hygienic macros. The Lispy.py code seems to support macros, so adding this feature to that milestone, but also needed for R7RS.

@nlfiedler
Copy link
Owner Author

See the explanation of macros on this page [1]. It makes it very clear how macros are to be implemented. Basically the macro takes the given form as-is, does whatever transformations it is intended to do, and the result is in turn evaluated by the reader. The use of ` and , in writing macros is common.

[1] http://prog-elisp.blogspot.ru/2013/10/lisp-for-c-programmers.html

@ghost ghost assigned nlfiedler Jan 21, 2014
@nlfiedler
Copy link
Owner Author

Having macro support will make implementing many of the other features simple, such as many of the derived expressions (e.g. and, cond, let and friends).

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

No branches or pull requests

1 participant