Do you know about Contextual?
The open-source library for Scala provides you with the ability to embed DSLs into interpolated strings in Scala. Want to know more? Check out this talk from LambdaConf by Jon Pretty and you'll also be about to define the static checks that should be performed during compilation.
Contextual: Enhancing Scala with Your Own Compile-time Checks
This session will introduce Contextual, an open-source library for Scala which provides to library developers the ability to embed DSLs into interpolated strings in Scala and to define—without writing any macros—the static checks that should be performed during compilation.
This talk was given by Jon Pretty at LambdaConf 2017.