-
Notifications
You must be signed in to change notification settings - Fork 21
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
AST printer? #15
Comments
What do you mean when you say AST printer? A pretty printer? If so, something like that isn't planned and it would be a welcome contribution, but I'd urge you to wait until after Elm 0.18 comes out as I'm likely going to make some significant changes to support positional information in the AST after it does. |
Basically a function that would take in any Elm AST record and output a string of Elm code. An AST by itself is good for introspection, but a printer is needed to make building/modifying ASTs useful. Some things that would be possible with an Elm AST parser + printer:
|
… as previous parameter
Thanks for writing this! I think this will be very useful for an idea I have for converting GraphQL schemas to Elm code. However one key thing that seems to be missing is an AST printer. Is that planned? If not I can try to come up with something.
The text was updated successfully, but these errors were encountered: