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

How can i store the generated AST in JSON format? #94

Open
RajSakpal opened this issue Jun 16, 2023 · 2 comments
Open

How can i store the generated AST in JSON format? #94

RajSakpal opened this issue Jun 16, 2023 · 2 comments

Comments

@RajSakpal
Copy link

No description provided.

@sundar-sarvam
Copy link

Any updates on this issue? Storing the AST in a JSON format will be immensely helpful!

@uwol
Copy link
Owner

uwol commented Aug 14, 2023

To serialize the AST, this would be a ANTLR topic, discussed here antlr/antlr4#3772 with some code here antlr/antlr4#3773

To serialize the ASG, one could try to pass the resulting ASG into Jackson ObjectMapper. However there will be circular references -> some @JsonIgnore annotations would be necessary.

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

3 participants