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

Propagate file:span information through toplevel definitions #1194

Closed jbouwman closed 3 weeks ago

jbouwman commented 1 month ago

Most AST types have a source field of type (cons integer integer) that indicates the character span of the source form associated with the parsed object.

In order to support runtime lookup of source definitions, change the type of source to source-location, which contains both a span and a filename.

This is stacked on #1209 and left in draft state while that change is considered.

jbouwman commented 3 weeks ago

Superseded by #1216