การเรนเดอร์th-TH

exitus

Translation status: ภาษาไทย reader-locale proof. Code fences render through the th-TH pipeline; prose is canonical Latin.

Sets the exit code or exit expression for an entry point.

Syntax: incipit argumenta <name> exitus <expr> <block>

Category#

entry

Examples#

radix/corpus/exitus/exitus.fab (canonical · keyword)#

Sets the exit code or exit expression for an entry point.

# =============================================================================
# exitus — Sets the exit code or exit expression for an entry point
# =============================================================================
#
# What this teaches:
#   • Sets the exit code or exit expression for an entry point.
#   • Related keywords: incipit, incipiet, argumenta
#
# Common mistakes:
#   • Using `iace` without a `⇥` on the enclosing function — `iace` requires an enclosing function with a `⇥` alternate-exit type (SEM010).
#
# See also: incipit, incipiet, argumenta
# =============================================================================

# exitus — CLI exit code on entry
#
# GRAMMAR:
#   entryModifier :← 'exitus' integer
#
# EXPECTED OUTPUT:
#   No incipit — declaration or test-runner surface only.
#
# BACKEND:
#   declaration-only entry modifier (whitelist: exitus/exitus.fab).
#

@ cli "exitus-smoke"
main args args exit 1 {
}