〈 ConstantDeclaration 〉 | ---> |
〈 Ident 〉 ``=''
〈 ConstExpression 〉 |
〈 ConstExpression 〉 | ---> |
〈 Expression 〉 |
〈 TypeDeclaration 〉 | ---> |
〈 Ident 〉 ``=''
〈 Type 〉 |
〈 VariableDeclaration 〉 | ---> |
〈 IdentList 〉 ``:''
〈 Type 〉 |
〈 IdentList 〉 | ---> |
〈 Ident 〉
{ ``,''
〈 Ident 〉 } |
〈 ProcedureDeclaration 〉 | ---> |
〈 ProcedureHeading 〉 ``;''
|
| |
〈 ProcedureBody 〉
〈 Ident 〉 |
〈 ProcedureHeading 〉 | ---> |
``PROCEDURE'' [``*'']
〈 Ident 〉
|
| |
[〈 FormalParameters 〉] |
〈 ForwardDeclaration 〉 | ---> |
``PROCEDURE'' `` ^ ''
〈 Ident 〉
|
| |
[〈 FormalParameters 〉] |
〈 FormalParameters 〉 | ---> |
``(''
[ 〈 FPSection 〉
|
| |
{ ``;''
〈 FPSection 〉 } ]
``)''
|
| |
[``:'' 〈 QualIdent 〉] |
〈 FPSection 〉 | ---> |
[ ``VAR''] 〈 IdentList 〉
``:'' 〈 FormalType 〉 |
〈 FormalType 〉 | ---> |
{ ``ARRAY'' ``OF'' }
〈 QualIdent 〉 |
〈 QualIdent 〉 | ---> |
[〈 Ident 〉 ``.'']
〈 Ident 〉 |
〈 ProcedureBody 〉 | ---> |
〈 DeclarationSequence 〉
|
| |
[``BEGIN'' 〈 StatementSequence 〉]
|
| |
``END'' |