Hi Rick,
I'm looking at ANTLR3 now... and am entertaining a ground-up rewrite
to get rid of unnecessary dependencies, improve performance, and
flesh out some attachment points for other tooling (i.e. FlexPMD).
What are you exactly proposing?
Have you though about contacting Ernest about any of this, I think
that is where you should start.
I'll say it's more complicated than it looks especially the way he
implemented the grammar. Depending on what you want to do it might be
hard for you to get a Tree out of what he has done.
I am pretty sure the way he implemented the grammar was not really
intended to much fiddling because of the backtracking.
I spent over a month studying that AS3.g :)
Let me know if you have any ideas, I already have a working AS3
parser/lexer in jasblocks antlr3, that if you really wanted to spend
time looking at grammar or modifying, it creates the AST Trees and
ALSO has an AS3 DOM already. The code target is java.
Check out;
https://github.com/teotigraphix/as3-commons-jasblocks
Look into the visitor package as well.
Mike
That is essentially what I did - took all the dependencies and
wrapped them up into a single executable jar. The final product is a
little over 20mb - it would be great if we could shrink this down a
bit.
Getting the formatter to run on the command line is a first step...
unfortunately the only way to create the .properties file ( that
drives the formatter ) is still in Eclipse. Next order of business
should probably include creating a stand-alone piece for that.
I'm looking at ANTLR3 now... and am entertaining a ground-up rewrite
to get rid of unnecessary dependencies, improve performance, and
flesh out some attachment points for other tooling (i.e. FlexPMD).
Cheers,
Rick Winscot