Java Grammar

johnm@mitchell.org (John D. Mitchell)
Thu, 28 Sep 1995 07:11:06 GMT

          From comp.compilers

Related articles
Java Grammar johnm@mitchell.org (1995-09-28)
| List of all articles for this month |
Newsgroups: comp.compilers
From: johnm@mitchell.org (John D. Mitchell)
Keywords: standards, C++, available
Organization: Mitchell Research
Date: Thu, 28 Sep 1995 07:11:06 GMT

                                                        Proposed Standard
                                                Java Programming Language
                                                    Grammar Specification


                                                        September 26, 1994


AUTHORS:
                Terence J. Parr parrt@parr-research.com
John D. Mitchell johnm@mitchell.org
Gary Funck gary@intrepid.com


OWNERSHIP:
For the moment, we maintain the copyright on this grammar.


REVISION:
1.00 Initial proposal


LOCATION:
                This file is located at:
                        ftp://ftp.parr-research.com/pub/Java/java.g.proposed


NOTES:
This grammar is designed for language specification purposes and is
*not* executable. Its purpose is to define the syntactic structure of
the Java language. Neither PCCTS nor YACC will accept this file as
input. It is most certainly non-LL(k) for any k and probably not
LALR(1) due to context-sensitivity (must use symbol table info to
parse, but due to forward references, one doesn't have that
information). The grammar is much tighter than you'd probably use in
practice; for example, we differentiate between lvalues and rvalues
rather than letting it slide to the semantic analysis phase.


No semantic information is used in this grammar; i.e., we have not
predicated any productions on symbol table information.


It is built from our experience in writing an initial Java front end
using PCCTS. The front end is not yet available. Stay tuned for more
information.


                We hope this will facilitate the open discussion of and eventual
                standardization of the Java programming language so that we can
                all move forward from a safe and sane base and write lots of
                truly cool software.
[...]
--


Post a followup to this message

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