Browsable Java (JDK 1.1) Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: java/java-1.1/jouault/extracted
Source used for this grammar: Frédéric Jouault, JAVA 1.1, a simplified metamodel of Java, Java-20040316.ecore, 2005/03/18 [Atlantic]

Summary

Syntax

JavaElement ::=
	ClassFeature
JavaElement ::=
	Package
ClassFeature ::=
	ClassMember
ClassFeature ::=
	JavaClass
ClassFeature ::=
	FeatureParameter
ClassMember ::=
	Field
ClassMember ::=
	Method
Field ::=
	[owner]::JavaClass [type]::JavaClass [isStatic]::Boolean [isPublic]::Boolean
JavaClass ::=
	PrimitiveType
JavaClass ::=
	[members]::ClassMember+ [package]::Package [typedElements]::ClassMember+ [parameters]::FeatureParameter+ [isAbstract]::Boolean [isStatic]::Boolean [isPublic]::Boolean
Method ::=
	[parameters]::FeatureParameter+
Package ::=
	[classes]::JavaClass+
PrimitiveType ::=
	[members]::ClassMember+ [package]::Package [typedElements]::ClassMember+ [parameters]::FeatureParameter+ [isAbstract]::Boolean [isStatic]::Boolean [isPublic]::Boolean
FeatureParameter ::=
	[type]::JavaClass [method]::Method
String ::=
	string
Boolean ::=
	"true"
	"false"

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []