javac lexer parser rewrite
Jonathan Gibbons
jonathan.gibbons at oracle.com
Wed Feb 8 09:25:58 PST 2012
On 02/08/2012 08:55 AM, Rémi Forax wrote:
>
> The problem is more the parser than the lexer.
>
> A good project should be to write a parser generator that takes the
> Java grammar
> and generates the same code as the existing parser, by the way.
The outcome of the compiler-grammar project was that there are
effectively 3 grammars, close but not necessarily equal.
1. The rules embedded in chapters 1-17 of JLS.
2. The rules in chapter 18 of JLS
3. The grammar accepted by javac.
A good project would be to identify the differences between these
grammars. :-)
-- Jon
More information about the compiler-dev
mailing list