“dynamically” creating case classes with macros
I would like to create a macro generated hierarchy of sealed abstract and case classes. There was an example similar to this with http://docs.scala-lang.org/overviews/macros/typemacros.html but is is now obsolete. Is this still possible? I think it would be incredibly powerful to generate a type safe AST for some specified grammar. Ideally with an IDE able to resolve all the classes. Travis Brown First for some shameless self-promotion: Eugene Burmako and I are giving a talk on type providers , a closely related topic, at Scalar 2014 tomorrow, and I encourage you to take a look at the example