Generic Language Technology (2IS15) g g gy ( )
Syntaxes
Prof.dr. Mark van den Brand
Book
- Software Language Engineering
g g g g by Anneke Kleppe (Addison Wesley)
/ Faculteit Wiskunde en Informatica
PAGE 1 13-9-2011
Signatures and grammars
- Definition of a (programming) language involves:
( g g) g g
- abstract syntax, so-called signature
- concrete syntax:
− textual syntax textual syntax − graphical syntax
- semantics:
− static semantics − static semantics − dynamic semantics
/ Faculteit Wiskunde en Informatica
PAGE 2 13-9-2011
Signatures and grammars
Grammar world Grammar world
- The 4-layer architecture
- M3 (E)BNF/SDF grammar
− defines structure of the (E)BNF in (E)BNF
- M2 Java grammar
− defines the structure of Java in (E)BNF ( )
- M1 Java program
− describes the manipulation (algorithm) of objects in the object layer
- M0 Object layer
− Objects we wish to manipulate
/ Faculteit Wiskunde en Informatica
PAGE 3 13-9-2011