我正在寻找用 JavaScript 语言编写的 Java 源代码解析器的实现。你知道吗?
最佳答案
看看ANTLR它可以将 Javascript 作为目标,Java 1.5 语法在 http://www.antlr.org/grammar/1152141644268/Java.g
编辑:链接停止工作 - 尝试 https://github.com/antlr/grammars-v4/blob/master/java/Java.g4 :)
关于用 JavaScript 编写的 Java 解析器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5993769/