|
View:
New views
2 Messages
—
Rating Filter:
Alert me
|
|
|
Ignore AnnotationsHi all,
I'm attempting to use Janino for java source parsing. We have a project with a number of GWT modules and I'd like to run some transformations on them before dropping them to the GWT compiler. My first pass has been with the Eclipse JDT. I've got that running, but it's huge and cumbersome. With Janino, the show stopper right now is our sources are marked up with annotations. For the purpose of the transformations I do not need to parse these annotations. I looked in Scanner.java and it looks like I could probably hack out a way to have Janino ignore the annotations, but I wanted to see if there was a better way, or maybe even some implementation sitting around that already did this. Otherwise, what an awesome project, compile, transform, evaluate in such a small package. Very nice and very cool! -Adam Malter --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: Ignore AnnotationsAdam~
Hacking the scanner is probably the best bet. If you are feeling industrious, you could push the annotations into the parsed AST and then ignore them there instead. That would allow people to recover the annotations when pretty printing the AST and allow later developers to leverage your work. I would also suggest that you base your work off of http://code.google.com/p/janino-streambase/ which has a bunch of bug fixes that yet to be pushed up stream. Arno has been MIA for about half a year now. Matt On Fri, Sep 25, 2009 at 12:55 PM, Adam Malter <amalter@...> wrote: Hi all, |
| Free embeddable forum powered by Nabble | Forum Help |