Support multi-file reference resolving in the Stratego editor (1)
Would require a dynamic rule that stores the source file of each definition and reparsing of the source file for a particular definition. We should be able to inspect whether a term has an origin or not for this (i.e., Spoofax/11)
Submitted by Lennart Kats on 16 February 2010 at 16:04
Issue Log
This can also be implemented without origin-introspection. I keep track of a definition -> source module mapping while parsing. The resolve strategy then parses the referenced module, desugars it and finds the referenced definition.
You’re absolutely right, I just figured it would be easier (or more efficient) to have this origin tracking API. I would be interested in seeing how you solved this one though; we still need a good general design pattern for this.
Nowadays, this only requires a NBL definition for Stratego.
Log in to post comments