I’m trying to compile some code with macros that require external resources at both compile time & runtime.
. ├── build.boot ├── CHANGELOG.md ├── doc │ └── intro.md ├── LICENSE ├── README.md ├── resources │ └── String.g4 ├── src │ └── antlr_test │ └── core.clj └── test └── antlr_test └── core_test.clj 6 directories, 8 files
Here’s my project directory. The String.g4 is required for both compiling and running. if I run boot build under the root dir, it will complain that “String.g4” is not found when expanding the macros.
I’ve tired to solve this by copy String.g4 to the root dir of the project and it works, but it might not be the best solution.
I’ll be glad if you could tell me a better solution.
Thanks a lot!