قبل
Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.
Creates an exclusive range with a Latin keyword.
Syntax: <expression> قبل <expression>
Category#
range
Related#
Examples#
radix/corpus/ante/ante.fab (canonical · keyword)#
Creates an exclusive range with a Latin keyword.
# =============================================================================
# قبل — Creates an exclusive range with a Latin keyword.
# =============================================================================
#
# What this teaches:
# • Exclusive range iteration — `نطاق <initium> قبل <finis>` iterates from
# initium up to (but not including) finis
# • Range keyword pattern — `قبل` provides a natural-language alternative
# to symbolic range syntax
#
# Common mistakes:
# • confusing `قبل` (exclusive upper bound) with `حتى` (inclusive) — `0 قبل 4` yields 0,1,2,3 while `0 حتى 4` yields 0,1,2,3,4
#
# See also: حتى, ‥
# =============================================================================
# قبل — exclusive upper bound for range iteration
#
# كرر نطاق <initium> قبل <finis> <var> { … }
#
# GRAMMAR:
# iterStmt :← 'كرر' 'نطاق' expr 'قبل' expr binding '{' stmt* '}'
#
# EXPECTED OUTPUT:
# none
main {
# i = 0, 1, 2, 3 (stops before 4)
for range 0 before 4 const i {
print i
}
}Expected output:
0
1
2
3