When using the SBT toolchain in Scala, is it possible to write a task that will read a special part of the project's source to generate scala-code at compile time.
Any ideas or even articles/tutorials on this? I am looking for something rather similar to Template Haskell.
treehugger.scala is a library designed for code generation.
The above code prints two lines:
treehugger does generate an AST, but non-compliant to scalac's AST.