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