بداية
Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.
Declares the synchronous program entry point.
Aliases: main, entry
Syntax: بداية <block>
Category#
function
Related#
Examples#
radix/corpus/incipit/incipit.fab (canonical · keyword)#
Declares the synchronous program entry point.
test "do nothing deliberately" {
pass
}
# =============================================================================
# بداية — Declares the synchronous program entry point
# =============================================================================
#
# What this teaches:
# • Declares the synchronous program entry point.
# • Related keywords: دالة, استورد
#
# Common mistakes:
# • Attaching `@ cli` to a non-`بداية` declaration — `@ cli` may only annotate an `بداية` entry point (SEM009).
#
# See also: دالة, استورد
# =============================================================================
# بداية — basic program entry point
#
# بداية { <body> }
#
# GRAMMAR:
# entryBlock :← 'بداية' block
#
# EXPECTED OUTPUT:
# none — smoke asserts exit 0; entry diagnostic via اعرض.
#
# BACKEND:
# Contrast with salve-munde.fab (module-scope اعرض), functionibus.fab
# (calls module-level دالة), and cli/cli.fab (بداية وسائط).
main {
print "ingressus"
}Expected output:
ingressus