[antlr-interest] ANTLR-based Java grammar for javac compiler

Simon cocoa at gmx.ch
Thu Nov 13 10:12:05 PST 2008


Why do they not use the tree construction mechanisms available in  
Antlr? As far as I can tell, they build the tree by using custom  
actions. The link to the full grammar is shown below:

http://hg.openjdk.java.net/compiler-grammar/compiler-grammar/langtools/file/e37d7d5df672/src/share/classes/com/sun/tools/javac/antlr/Java.g

When would you choose not to use the tree construction mechanisms?

Simon

On Nov 10, 2008, at 21:45 , Terence Parr wrote:

> http://openjdk.java.net/projects/compiler-grammar/
>
> Direct link to the grammar:
>
> http://openjdk.java.net/projects/compiler-grammar/antlrworks/Java.g
>
> USF MSCS student Yang Jiang built this as an intern for Sun.
>
> Terence
>
> List: http://www.antlr.org/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address



More information about the antlr-interest mailing list