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]
JavaSource
, NamedElement
, ClassDeclaration
, MethodDefinition
, MethodInvocation
, String
), 0 root (—), 3 top (JavaSource
, NamedElement
, String
), 0 bottom (—).[classes]
, [superclass]
, [methods]
, [class]
, [invocations]
, [method]
.JavaSource ::=
[classes]::ClassDeclaration
NamedElement ::= ClassDeclaration
NamedElement ::= MethodDefinition
ClassDeclaration ::=
[superclass]::ClassDeclaration [methods]::MethodDefinition
MethodDefinition ::=
[class]::ClassDeclaration [invocations]::MethodInvocation
MethodInvocation ::= [method]::MethodDefinition
String ::= string