This page is no longer maintained — Please continue to the home page at www.scala-lang.org

staged rewriting via compiler plugins

No replies
Miguel Garcia
Joined: 2009-06-10,
User offline. Last seen 42 years 45 weeks ago.

Hi,

I've read SID 2 (Phase and Plug-In Initialization), and was wondering
whether visiting the parse phase after a custom plugin phase is supported.

The motivation being a custom plugin that generates Scala snippets (say,
from annotations). If compilation could be restarted for that compilation
unit, the custom plugin could be dispensed with performing name resolution,
typing, etc. for the snippets it generated.

On the other hand, I wouldn't like to implement the generation of snippets
with a pre-processor, because then I can't access type information.

regards,

Miguel
http://www.sts.tu-harburg.de/people/mi.garcia

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland