Browsable Java (JDK 1.1) Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: java/java-1.1/touzet/extracted
Source used for this grammar: David Touzet, JavaSource 1.1, a basic metamodel representing Java source code, JavaSource.ecore, 2005/04/12 [Atlantic]

Summary

Syntax

JavaSource ::=
	[classes]::ClassDeclaration+
NamedElement ::=
	ClassDeclaration
NamedElement ::=
	MethodDefinition
ClassDeclaration ::=
	[superclass]::ClassDeclaration [methods]::MethodDefinition+
MethodDefinition ::=
	[class]::ClassDeclaration [invocations]::MethodInvocation+
MethodInvocation ::=
	[method]::MethodDefinition
String ::=
	string

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