Did anybody write java parsers and tree generators? I tried java cc but got no success with it.
My purpose is somehow deeper though. I am trying to develop java to abc byte code compiller.
here is active script 3.0 compiler source code. And I was thinking to myself it would be great to write code on java and produce SWF flash. Is not it cool idea?
Active script 3.0 and java are very alike. Their byte code formats are alike as well. So there are lot of of options:
one is to replace java specific constructions to those of AS 3.0
second is to transform class byte code to abc byte code
third is most optimal (from my point of view) generate evaluation tree for java source, trans form it to the tree Macromedia's asc compiler user to traverse and compile using old good flex compiler. That is what i am trying to do.
So the first step is easy: get evaluation tree for java source. Can anybody share some practices regarding parser generator using javacc or antlr?