Re: Definitive grammar for Java 1.1?

Joerg Brunsmann <Joerg.Brunsmann@FernUni-Hagen.de>
17 Jul 1998 10:06:30 -0400

          From comp.compilers

Related articles
Definitive grammar for Java 1.1? james@advancedsw.com (James Powell) (1998-07-10)
Re: Definitive grammar for Java 1.1? egagnon@sprynet.com (Etienne Gagnon) (1998-07-11)
Re: Definitive grammar for Java 1.1? gkasten@auco.com (Glenn Kasten) (1998-07-13)
Re: Definitive grammar for Java 1.1? Joerg.Brunsmann@FernUni-Hagen.de (Joerg Brunsmann) (1998-07-17)
Re: Definitive grammar for Java 1.1? james@advancedsw.com (James Powell) (1998-07-20)
Re: Definitive grammar for Java 1.1? sreeni@csc.albany.edu (1998-07-20)
Re: Definitive grammar for Java 1.1? thetick@magelang.com (Scott Stanchfield) (1998-07-21)
| List of all articles for this month |
From: Joerg Brunsmann <Joerg.Brunsmann@FernUni-Hagen.de>
Newsgroups: comp.compilers
Date: 17 Jul 1998 10:06:30 -0400
Organization: Fernuniversitaet Hagen - Software Engineering (Praktische Informatik III)
References: 98-07-097 98-07-122
Keywords: Java, parse

> > Does anyone know if a BNF grammar has been published for Java 1.1?
>
> There are errors in the grammar for the 1.1 specification, which is at
> http://www.javasoft.com/products/jdk/1.1/docs/guide/innerclasses/spec/inner
> classes.doc.html
> Some of the errors are listed at
> http://www.nodule.demon.co.uk/java/java-1.1spec-bugs.htm.
>
> I don't know of a single complete grammar that is correct.
> I've heard from others that the grammar is not LALR, but is LL.


Yes, known as Bug Id 4086744 at developer.java.sun.com. To quote: "The
inner class specification does not provide an LALR(1) grammar."


I saw the latest yacc specification of guavac, the free java compiler,
containing a hack for that.


Cheers,


Joerg
--


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.