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) |
From: | James Powell <james@advancedsw.com> |
Newsgroups: | comp.lang.java.softwaretools,comp.compilers |
Date: | 10 Jul 1998 21:07:20 -0400 |
Organization: | Advanced Software Technologies, Inc. |
Keywords: | parse, Java, standards, question |
Hi all,
Does anyone know if a BNF grammar has been published for Java 1.1? I
can only find the Java 1.0 grammar at
http://java.sun.com/docs/books/jls/html/jTOC.doc.html, with some notes
pertaining to 1.1. We've implemented a Java parser, to which we are
adding the 1.1 language features, but we are currently having to
discover some of these language features as we go along. The syntax
used to instantiate an inner class in the code given below, for example,
is not described in the "1.1 Update", but does work with JDK 1.1.5:
class DemoErrors {
static class A { };
synchronized void AMethod() {
DemoErrors de = new DemoErrors();
// This syntax for 'new' does not appear in the published 1.1 Java
language grammar.
A a = de.new A();
}
}
Any pointers or help would be appreciated, thanks,
-James-
--
James Powell - Software Engineer/Reverse Engineering - james@advancedsw.com
Advanced Software Technologies, Inc.
--
Return to the
comp.compilers page.
Search the
comp.compilers archives again.