PROPOSAL: open and close brace optional for single statement try, catch, finally, method declaration

Joseph D. Darcy Joe.Darcy at Sun.COM
Mon Mar 30 09:43:43 PDT 2009


Tom Hawtin wrote:
> Glenn A. Marshall wrote:
>   
>

[snip]
> BTW: Does anyone have a good suggestion for tool and basic Java grammar 
> to check that syntax modifications are still parseable?
>   

Besides the hand-written recursive descent parser in javac living over in

    http://hg.openjdk.java.net/jdk7/jdk7/langtools

the Compiler Grammar project

    http://openjdk.java.net/projects/compiler-grammar/

produced an ANTLR grammar that may be more amenable to checking.

-Joe



More information about the coin-dev mailing list