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

Unelaborate terms in error messages #20

Open
croyzor opened this issue Jul 25, 2024 · 0 comments
Open

Unelaborate terms in error messages #20

croyzor opened this issue Jul 25, 2024 · 0 comments

Comments

@croyzor
Copy link
Collaborator

croyzor commented Jul 25, 2024

Take the bracketing logic in Brat.Syntax.Core and reimplement it in Brat.Syntax.Flat. When showing error messages to users we should first call unelaborate on the terms to hide the extra information from users and have highlighted terms match actual source code more closely.

We should retain the option of printing elaborated error messages with a new compiler flag, like --verbose-errors

N.B. For nicer printing, we should keep track of whether our :-: and applications were elaborated from |> or ; or f(a)

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

1 participant