On 2014-07-21 11:35, Mike wrote:

Well, I've never written any Java code before, and I'm not looking
forward to learning yet another language. Is it possible to utilize the
java parser from D?

Just for the record, I started a project to do this [1]. It's very simple so far. But the basic structure is there. It sets up the compiler, starts the parsing and so on. Just start adding visitor methods like this [2] for different language constructs.

[1] https://github.com/d-widget-toolkit/jport
[2] https://github.com/d-widget-toolkit/jport/blob/master/src/dwt/jport/analyzers/CodeAnalyzerTreeVisitor.scala#L14

--
/Jacob Carlborg

Reply via email to