





























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!






























parsed by
language for
produces
composed of
produces
(roughly) corresponds to
generates composed of
language for
parsed by
class A { int f;
void m( int i) { f = i * f; } }
FieldDeclaration ::= Modifier Type Identifier “;”
Modifer ::= “public” | “protected” | “private” | ε
Type ::= BasicType | Identifier
BasicType ::= “int” | “boolean”
Identifier ::= [a-zA-Z_]+
FieldDeclaration ::= Modifier Type Identifier “;”
Modifer ::= “public” | “protected” | “private” | ε
Type ::= BasicType | Identifier
BasicType ::= “int” | “boolean”
Identifier ::= [a-zA-Z_]+
× ×
language for
produces
(roughly) corresponds to
composed of
(roughly) corresponds to
FieldDeclaration ::= Modifier Type Identifier “;”
Modifer ::= “public” | “protected” | “private” | ε
Type ::= BasicType | Identifier
BasicType ::= “int” | “boolean”
Identifier ::= [a-zA-Z_]+
FieldDeclaration ::= Modifier Type Identifier;
Modifer;
abstract Type; BasicType : Type; SimpleType : Type ::= Identifier;
Identifier ::= <Name:String>;
containment, etc.
language for
produces
(roughly) corresponds to
composed of
generates
simpler parts