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

Better formatting for the parsers. #11

Open
WilliamDue opened this issue Feb 25, 2024 · 2 comments
Open

Better formatting for the parsers. #11

WilliamDue opened this issue Feb 25, 2024 · 2 comments

Comments

@WilliamDue
Copy link
Collaborator

Currently the parsers have huge tables that are unreadable that makes my emacs lag so some line limit should be made.
The generated code should also be better formatted such that the indentation and spacing is more uniform.
Also ideally if futharks algebraic data types could be used instead of unsigned integers then the parsers would be more human readable.

@WilliamDue WilliamDue changed the title Better formatting of the parsers. Better formatting for the parsers. Feb 25, 2024
@athas
Copy link
Member

athas commented Feb 26, 2024

I caution against using sum types. The type checker is not well tuned when there are many constructors, and the type errors would be unreadable.

@WilliamDue
Copy link
Collaborator Author

Hm maybe the solution is to just make a comment in the resulting parser with what terminals and nonterminals correspond to.

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

2 participants