Whichever option is chosen significant effort would be required.
IMHO such undertaking should reuse/collaborate as much as possible with the
haxe compiler because it's the only implementation (unlike java which has
specs, compliance suite, etc.). Otherwise much time will be spent duplicating
what the compiler already does. Which is why I would favor the option of
integration the ocaml compiler in java, with the added bonus of incremental
compilation in the background. I would love to work on this but I don't have
the time nor sufficient motivations cause I've got other priorities. Such
project could be a great topic of research for those studying compiler
technologies.
> In conclusion, we need a little and easy-to-use parser and
> we will need to developp the Haxe AST.
> Today i have used the JAVACC and i have begun to generate the Haxe
> grammar language from the haxe grammar Gold version and next i will
> see for developp the AST and a plugin like java version (if i have the
> freetime...)
Wishing you the best!
I spent a bit of time with xtext but not enough to have something usable for
hxml. However I'm happy with xtext and plan to spend a more time on this. I
think Guice and a better designed grammar will go a long way resolving the
issues you have talked about (better error messages, auto-complete).