Questions abut Spark
I am working on an Elixir library that provides a Domain-Specific Language (DSL). I plan to use the Spark library and have a few questions regarding its implementation in a project. My questions are as follows:
- With Spark, how do you implement the actual functionality of your DSL? Specifically, once you have defined your sections and entities, how do you define the code that will be quoted by each section and entity?
- Am I correct in assuming that the sections and entities are macros that quote code, or is there something fundamental about Spark’s operation that I’m missing?
- My library focuses more on using a single macro with numerous options rather than nesting multiple macros. I’m primarily interested in Spark for its tooling capabilities. Given this context, do you think Spark would be a good fit for my library?
Any help is welcome.