[antlr-interest] Bug in java grammar 1.18 (again)

Terence Parr parrt at jguru.com
Thu Apr 25 18:08:41 PDT 2002


On Thursday, April 25, 2002, at 05:53  PM, Terence Parr wrote:
"(new Outer()).super();"
>
> Can somebody "unconfuse" me?  I've not become an expert on Java
> semantics...I'm just codin' in it.  I can't even contrive an example to
> test with the compiler.

Ok, i found somebody's example and unconfused myself.  f.g.blort.super() 
is obviously parsed as the enclosing instance like (new Outer()) 
followed by super().  Ok, now I'll jump into the grammar and see if i 
can get it to parse properly given John Pybus' version.

Trivial to fix with a syntactic pred, but might slow stuff down.  I'll 
see.

Ter


 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 



More information about the antlr-interest mailing list