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

Allow pretty printing the AST/HIR #502

Open
Centril opened this issue Jun 13, 2019 · 4 comments · May be fixed by #722
Open

Allow pretty printing the AST/HIR #502

Centril opened this issue Jun 13, 2019 · 4 comments · May be fixed by #722
Labels
enhancement Something new the playground could do help wanted Not immediately going to be prioritized — ask for mentoring instructions!

Comments

@Centril
Copy link

Centril commented Jun 13, 2019

It would be really neat if there was an option to dump the AST and HIR representations of programs alongside the option to dump the MIR representation. This would be invaluable when working on the compiler.

@Centril
Copy link
Author

Centril commented Jun 13, 2019

cc #371

@camelid
Copy link
Member

camelid commented Nov 14, 2020

Note: I think the command to use for printing the HIR would be either -Z unpretty=hir (a source-like representation) or -Z unpretty=hir-tree (more like Debug output).

@shepmaster shepmaster added enhancement Something new the playground could do help wanted Not immediately going to be prioritized — ask for mentoring instructions! labels Nov 17, 2020
@jyn514
Copy link
Member

jyn514 commented Feb 18, 2021

I'm interested in working on this. I'll try to get around to it this weekend.

@camelid
Copy link
Member

camelid commented Feb 18, 2021

Note that pretty-printing the AST will probably have to wait until @LeSeulArtichaut implements -Z unpretty=ast.

@JohnTitor JohnTitor linked a pull request Jun 8, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Something new the playground could do help wanted Not immediately going to be prioritized — ask for mentoring instructions!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants