title: "dynamically" creating case classes with macros
body: <p>I would like to create a macro generated hierarchy of sealed abstract and case classes.  There was an example similar to this with <a href="http://docs.scala-lang.org/overviews/macros/typemacros.html" rel="noreferrer">http://docs.scala-lang.org/overviews/macros/typemacros.html</a> but is is now obsolete.  Is this still possible?</p>
  
  <p>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.</p>