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

Generic error printer and stream access #1066

Closed
wants to merge 1 commit into from

Conversation

jbouwman
Copy link
Collaborator

@jbouwman jbouwman commented Mar 7, 2024

Move error printing from src/error.lisp to src/source-error.lisp, and make it independent of Coalton.

  • Don't require a file argument when constructing errors; instead, bind a source file, or string, at compiler entry.
  • Provide access to file information and contents via generics, to provide a common interface to string, file and displaced-file sources.
  • Merge coalton-error structure into condition classes.
  • Break up display-coalton-error into smaller functions.

@jbouwman jbouwman force-pushed the source-error branch 3 times, most recently from b278815 to 0dc789e Compare March 11, 2024 22:08
jbouwman pushed a commit to jbouwman/coalton that referenced this pull request Mar 13, 2024
Modify parser-tests to check the literal contents of emitted parser errors.

Provides verification for modifications of error printer in coalton-lang#1066
eliaslfox pushed a commit that referenced this pull request Mar 15, 2024
Modify parser-tests to check the literal contents of emitted parser errors.

Provides verification for modifications of error printer in #1066
@jbouwman jbouwman marked this pull request as draft March 15, 2024 22:19
@jbouwman jbouwman marked this pull request as ready for review April 1, 2024 02:59
@jbouwman jbouwman force-pushed the source-error branch 2 times, most recently from 6f9890e to 88b5364 Compare April 10, 2024 23:25
This change set moves non-coalton-specific error printing from
src/error.lisp into src/source-error.lisp. The monolithic output
function is rewritten as a `printer-state` object and associated
output functions.

- Merge source-error value object and source-error condition classes
- Unthread 'file' argument to parser functions
@jbouwman
Copy link
Collaborator Author

suspended until there is interest in working on error ergonomics

@jbouwman jbouwman closed this Apr 18, 2024
@jbouwman jbouwman deleted the source-error branch September 27, 2024 22:38
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

Successfully merging this pull request may close these issues.

1 participant