aboutsummaryrefslogtreecommitdiff
path: root/doc/language/cpsc-keyword-procedure.7.md
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-13 14:25:59 +0000
committer_ov4 <ov4@ov4.org>2026-10-13 14:25:59 +0000
commitff121fcbb461a4d8f768e87128facf32e6272889 (patch)
tree12cccac70566d4159c9edeb5270889c6958e9c29 /doc/language/cpsc-keyword-procedure.7.md
parent2fc1af63b20ab67683b74e6bb8f2a3edf5ef2a3d (diff)
Group language manuals into function and keyword directories
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'doc/language/cpsc-keyword-procedure.7.md')
-rw-r--r--doc/language/cpsc-keyword-procedure.7.md43
1 files changed, 0 insertions, 43 deletions
diff --git a/doc/language/cpsc-keyword-procedure.7.md b/doc/language/cpsc-keyword-procedure.7.md
deleted file mode 100644
index b2e6108..0000000
--- a/doc/language/cpsc-keyword-procedure.7.md
+++ /dev/null
@@ -1,43 +0,0 @@
-% CPSC-KEYWORD-PROCEDURE(7)
-
-# NAME
-
-cpsc-keyword-procedure - define a procedure and parameter modes
-
-# SYNOPSIS
-
-```text
-PROCEDURE name(parameters)
- statements
-ENDPROCEDURE
-```
-
-# DESCRIPTION
-
-Invoke with CALL. Parameters use `name : type`, optionally prefixed by
-BYVAL or BYREF. The default is BYVAL (copy); BYREF modifies the caller's
-variable and requires an exact type match. Scalar BYREF arguments must be
-plain variables. A mode remains in effect for following parameters until
-another mode is specified.
-
-Arrays accept `ARRAY OF type` or `ARRAY[lower:upper, ...] OF type`;
-explicit bounds must be integer literals. BYVAL copies the array; BYREF
-shares it. Bare RETURN can exit a procedure before a block terminator;
-RETURN with a value is invalid. BYVAL, BYREF, RETURN, and ENDPROCEDURE
-belong here. Calls may precede top-level definitions.
-
-# EXAMPLE
-
-```text
-PROCEDURE Increment(BYREF Value : INTEGER)
- Value <- Value + 1
-ENDPROCEDURE
-DECLARE Count : INTEGER
-CALL Increment(Count)
-OUTPUT Count
-```
-
-# SEE ALSO
-
-[cpsc-language-overview(7)](cpsc-language-overview.7.md), [cpsc-keyword-call(7)](cpsc-keyword-call.7.md), [cpsc-keyword-function(7)](cpsc-keyword-function.7.md).
-