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

Write initial pretty-printer #10

Open
3 tasks
sshine opened this issue Sep 30, 2019 · 0 comments
Open
3 tasks

Write initial pretty-printer #10

sshine opened this issue Sep 30, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@sshine
Copy link
Owner

sshine commented Sep 30, 2019

Use quchen's prettyprinter for this.

This task may be broken into parts, e.g.:

  • Set up dependencies, create module, perform basic imports and function stub.
    Note: Any subsequent sub-part depends on this task being in-place.
  • Write a sub-part of the pretty-printer that only addresses a particular piece of syntax, e.g.:
    ., ?, .foo, .[], true / false, `"(true)"
  • Write pretty-printer for binary operators that respects precedence and associativity. The best way that I am currently aware of is demonstrated in Lira's prettyprinter, but other suggestions or sources of inspiration are very welcome.

For each of these tasks, initially you can choose to not worry if the output is actually pretty.

@sshine sshine added the enhancement New feature or request label Sep 30, 2019
@sshine sshine added this to the Parser complete milestone Oct 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant