drym-org / qi

An embeddable flow-oriented language.
58 stars 12 forks source link

Investigate hierarchical reporting of expansion events in the compiler #156

Open countvajhula opened 6 months ago

countvajhula commented 6 months ago

We use emit-local-step to report compiler transformations as expansion steps, but this API doesn't capture the (tree-structured) context of expansion as normal Racket expansion does. Try unpublished expansion event APIs to see if there are any that already support this. This would help us debug expansion and compilation using the Macro Stepper.

See Context is Everything.