coalton-lang / coalton

Coalton is an efficient, statically typed functional programming language that supercharges Common Lisp.
https://coalton-lang.github.io/
MIT License
1.12k stars 67 forks source link

Supply source-error:file to maybe-read-form #1209

Closed jbouwman closed 3 weeks ago

jbouwman commented 1 month ago

This change builds a source-error:file object immediately when Coalton is passed control of an input stream, so that any activity against that stream can be wrapped in a handler that rethrows lower-level reader errors as parser-errors.

source-error:file is made abstract, and the error printer reads source text from a newly opened stream when printing. This allows file objects to be attached directly to and dumped along with coalton objects to support runtime navigation to symbols, as #1194

Closes #1206

jbouwman commented 3 weeks ago

Superseded by #1216