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

Documentation and Example needed: How to compile an AST to javascript or java bytecode. #124

Open
welopino opened this issue Oct 8, 2016 · 1 comment

Comments

@welopino
Copy link

welopino commented Oct 8, 2016

Please provide documentation and example on how to perform an AST transformation within the normal process of parsing, typechecking, optimizing and bytecode generation - most importantly on how to feed an AST into typechecking and compilation. [With compilation I mean javascript or bytecode generation]

@lucaswerkmeister
Copy link
Member

Well, I’ve never compiled a ceylon.ast AST to CAR or JS before, so I can’t tell you how to do this yet… there’s a test that feeds two compilation units into the typechecker (powerOfTwo.ceylon), but I haven’t tried to hook that up to a backend yet. If you figure out how to do it, please let me know and I’ll be happy to add the documentation :)

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

2 participants