From 308a2addf655fe45f2098f8542f0ff1290612cd9 Mon Sep 17 00:00:00 2001
From: Eugen Wissner <belka@caraus.de>
Date: Tue, 14 Jul 2026 19:42:32 +0200
Subject: Replace procedure end with return

---
 doc/appendix.tex | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

(limited to 'doc/appendix.tex')

diff --git a/doc/appendix.tex b/doc/appendix.tex
index 36bb72a..1e3ba4e 100644
--- a/doc/appendix.tex
+++ b/doc/appendix.tex
@@ -173,13 +173,12 @@
 
 <procedure-heading> = `(' [<parameter> \{`;' <parameter>\}] `)' <return-declaration>.
 
-<procedure-body> = <constant-part> <variable-part> <statement-part> [`return' <expression>] `end'.
+<procedure-body> = <constant-part> <variable-part> <statement-part> `return' [<expression>].
 
 <procedure-declaration> = `proc' <identifier-definition> <procedure-heading> \\
 	(<procedure-body> | `extern').
 
 <program> = <import-part>
     <constant-part> <type-part> <variable-part>
-	\{<procedure-declaration>\}
-	<statement-part> [`return' <expression>] `end' `.\@'.
+	\{<procedure-declaration>\} <statement-part> `end' `.\@'.
 \end{grammar}
-- 
cgit v1.2.3

