- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
Re: staged rewriting via compiler plugins
Wed, 2009-06-17, 11:59
Just to add some context to my question about re-visiting the parse phase,
the
situation for Java compilers compliant with JSR-269 is depicted in the
attached pdf,
showing that annotation processing my trigger another round of parsing.
A similar workflow can be of value when processing Scala annotations too.
Tips on how to achieve that are welcome.
regards,
However, is there a reason for not adding the new definitions directly into the AST? By running the plugin after the parser you get name resolution and typin, you really only need to create the trees. This seemsto be simpler.
Lukas
On Wed, Jun 17, 2009 at 12:59, Miguel Garcia <miguel.garcia@tuhh.de> wrote: