benknoble / frosthaven-manager

GUI Frosthaven Scenario Manager
https://benknoble.github.io/frosthaven-manager
Other
11 stars 3 forks source link

Try using `resolve-path-spec` in bestiary, foe langs for resolving paths #76

Closed benknoble closed 1 month ago

benknoble commented 10 months ago

See https://docs.racket-lang.org/syntax/transformer-helpers.html#%28part._path-spec%29

benknoble commented 1 month ago

I don't think this is useful currently for imports because those are handled directly by require in the output of make-dbs. Further, a version of #108 that records the dependencies by parsing out the AoEs at expand time should almost certainly use require, too, to mark the dependency. If it needs a lower-level marker (is there such a one?), then resolve-path-spec may be helpful.

PS The AoE require is probably something like (require (only-in aoe-paths) ...); that is, it imports nothing, but depends on the module nonetheless.