javac lexer parser rewrite

Dawid Weiss dawid.weiss at gmail.com
Mon Feb 20 07:06:51 PST 2012


Leszek,

Sorry for chiming in so late about this.

> I would rather write grammar for LALR parser generator than LL one like antlr
> We have at lest 3 suitable tools: Beaver, Byaccj and Java-cup

You may want to take a peek at what folks did in qdox here --
http://qdox.codehaus.org/

The home seems to be out of date but maven will come up with the sources:
http://repo1.maven.org/maven2/com/thoughtworks/qdox/qdox/1.12/qdox-1.12-project.zip

>From what I can see it's jflex/byaccj so you can take this and
improve/ refactor to your needs.

Dawid



More information about the compiler-dev mailing list