Browsable Java Project Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: java/eclipse/project/extracted
Source used for this grammar: Brahim Loukil, Java Project 1.0, JavaProject.ecore, 2008 [Atlantic]

Summary

Syntax

JavaProject ::=
	[ownedPackageFragment]::PackageFragment+
PackageFragment ::=
	[ownedCompilationUnit]::CompilationUnit+
CompilationUnit ::=
	[importDeclaration]::ImportDeclaration+ [ownedType]::Type+ [declaration]::PackageDeclaration
ImportDeclaration ::=
	[name]::String
Type ::=
	[nestedType]::Type+ [ownedSuperType]::Type+ [elementName]::String [member_kind]::MEMBER_KIND [methods]::Method+ [fields]::Field+
Field ::=
	ε
Method ::=
	[returnType]::String [parametersName]::String+ [parametersType]::String+
JavaElement ::=
	Type
JavaElement ::=
	Field
JavaElement ::=
	Method
MEMBER_KIND ::=
	[class]::ε
	[enum]::ε
	[interface]::ε
	[Annotation]::ε
NamedElement ::=
	JavaProject
NamedElement ::=
	PackageFragment
NamedElement ::=
	CompilationUnit
NamedElement ::=
	ImportDeclaration
NamedElement ::=
	JavaElement
NamedElement ::=
	PackageDeclaration
PackageDeclaration ::=
	[name]::String
String ::=
	string

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