-
Notifications
You must be signed in to change notification settings - Fork 3
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 replacements for Python statements. #3
Comments
Try statements are also important. Control statements less (we have higher-order functions), but still high priority if we don't want to scare of Pythonistas. Drython pretty much has these down. It's just a matter of adding macros to make them easy. I'm not sure how classes should work yet.
|
I started an experimental branch for this. I think the munging is working. I've also got an implementation for |
|
|
The critical macros are all implemented and working well enough to write native unit tests cases. They still need some work on certain edge cases (need more tests!) and don't quite get the metadata right. |
I just added |
I've already done most of the work in Drython. I think I'll just copy the relevant bits over, but this may become a separate package later.
These will be special cased in the Hebigo reader because they're Python reserved words, e.g. the symbol
def
would munge ashebi.basic.._macro_.def_
.def
is an especially important one. I'm thinking roughly Scheme semantics:So in Hebigo,
assigns a simple global.
But
defines a function. It should compile to Hissp like:
The text was updated successfully, but these errors were encountered: