Die Grammatik von Oberon II

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]

*Produktionsregeln P (in EBNF):
⟨ CompilationUnit ⟩---> ⟨ Module ⟩ | ⟨ Definition ⟩
⟨ Definition ⟩---> ``DEFINITION'' ⟨ Ident ⟩ ``;''
[⟨ ImportList ⟩] ⟨ DefSequence ⟩
``END'' ⟨ Ident ⟩ ``.''
⟨ ImportList ⟩---> ``IMPORT'' ⟨ Import ⟩
{ ``,'' ⟨ Import ⟩ } ``;''
⟨ Import ⟩---> ⟨ Ident ⟩ [``:='' ⟨ Ident ⟩]
⟨ DefSequence ⟩---> { ``CONST''
{ ⟨ ConstantDeclaration ⟩ ``;'' } |
``TYPE'' { ⟨ TypeDeclaration ⟩ ``;'' } |
``VAR'' { ⟨ VariableDeclaration ⟩ ``;'' } }
{ ⟨ ProcedureHeading ⟩ ``;'' }
⟨ Module ⟩---> ``MODULE'' ⟨ Ident ⟩ ``;''
[⟨ ImportList ⟩] ⟨ DeclarationSequence ⟩
[``BEGIN'' ⟨ StatementSequence ⟩]
``END'' ⟨ Ident ⟩ ``.''
⟨ DeclarationSequence ⟩---> { ``CONST''
{ ⟨ ConstantDeclaration ⟩ ``;'' } |
``TYPE'' { ⟨ TypeDeclaration ⟩ ``;'' } |
``VAR'' { ⟨ VariableDeclaration ⟩ ``;'' } }
{ ⟨ ProcedureDeclaration ⟩ ``;'' |
⟨ ForwardDeclaration ⟩ ``;'' }

 

 [Vorheriges Kapitel]  [Vorherige Seite]  [Inhaltsverzeichnis]  [Nächste Seite]  [Nächstes Kapitel]
Copyright © 2004, 2005 Andreas Borchert, in HTML konvertiert am 18.02.2005