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

Putting the JS AST specification on your radar #64

Open
Yoric opened this issue Mar 21, 2018 · 3 comments
Open

Putting the JS AST specification on your radar #64

Yoric opened this issue Mar 21, 2018 · 3 comments

Comments

@Yoric
Copy link

Yoric commented Mar 21, 2018

I'm currently working on the JavaScript Binary AST TC39 proposal. Part of this proposal is an official AST for JavaScript. While this AST is not final yet, it is stabilizing, so I figured it might be of interest to you: WIP specs.

Extracting a Rust ADT from the WIP specs is pretty easy. If you need, I have code that does it already, and I figure I'll publish it as a separate crate soon.

@maciejhirsz
Copy link
Member

Hey! That looks super interesting! We already have a way to serialize the AST produced by ratel to ESTree compatible JSON, a binary format would be even better for any cross-platform interaction.

@Yoric
Copy link
Author

Yoric commented Mar 21, 2018

There will be a crate for that, too :)

@Yoric
Copy link
Author

Yoric commented Aug 29, 2018

How robust is your parser at the moment? Would it be useful to try and use it as a built-in parser for the binjs-ref implementation?

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

No branches or pull requests

2 participants