Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (27 sloc) 1.51 KB
http://github.com/BNFC/bnfc
https://github.com/BNFC/bnfc/blob/b3ae78b95edd2fee933c58bf00a57d95cfb4d024/examples/Java/java.cf
Copyright (C) 2004 Mike Rainey, All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
************************
* Java LBNF definition *
************************
This is my first attempt at an LBNF definition of the Java 1.1 syntax.
A good portion of the following code is translated from two sources:
http://www.cs.dartmouth.edu/~mckeeman/cs118/notation/java11.html and
http://java.sun.com/docs/books/jls/second_edition/html/syntax.doc.html
To use this file, download BNF Converter at:
http://www.cs.chalmers.se/~markus/BNFC/
Please send bug reports/fixes to mrainey@uchicago.edu. Both are greatly
encouraged! If you're enterprising, maybe update this definition to
Java 1.5 ;)
Grammar in a broad sense fetched automatically by Vadim Zaytsev, http://grammarware.net