-
Notifications
You must be signed in to change notification settings - Fork 41
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
Text format support for a Java WebAssembly runtime #224
Comments
Hi @andreaTP, as you mentioned that we can either enable core parser functionalities first or enable custom parsers. |
No super strong opinion as far as we can get this effort started. A possible approach would be to extract an In this way implementing new Parsers should be straightforward. A couple of notes:
cc. @mariofusco |
I'm fine with antlr if @andreaTP is. Keep in mind that WAT is basically just s-expressions (with some caveats) so the parser really should be the easier part if you want to just do it by hand. But if Antlr gives us a better experience that sounds good to me too. One thing I do want to note as a possible conflict is #208 as we're kind of refactoring some of the core wasm encoder and decoder layer. It might not be a problem, but maybe something we should talk about in the team meeting tomorrow. |
Note that ANTLR generated code depends on |
After the merge of #328 we have a viable workaround for the lack of this implementation. |
That's a brilliant approach |
The task is to construct a Parser which converts Text format WASM Module and Generating output through AST using Domain classes already available in the project.
ANTLR is a suggested Parsing framework for the task.
The text was updated successfully, but these errors were encountered: