العرضar

مخطط

Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.

Declares an application-owned relational heading (experimental).

Aliases: relational heading

Syntax: مخطط <Name> { عمود <type> <name> ... }

Category#

declaration

Examples#

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

Declares an application-owned relational heading (experimental).

# =============================================================================
# مخطط — Declares an application-owned relational heading (experimental)
# =============================================================================
#
# What this teaches:
#   • Relational headings — `مخطط Name { ... }` names the columns an application reads from a database result.
#   • Declaration only — a مخطط carries column metadata, not a runtime value, so a program that declares one still runs unchanged.
#
# Common mistakes:
#   • Giving a مخطط methods or `حقق` — a مخطط is a heading, not a صنف; both are rejected at parse time.
#
# See also: عمود, صنف
# =============================================================================

# مخطط — relational heading declaration
#
# GRAMMAR:
#   schemaDecl :← 'مخطط' IDENTIFIER '{' (schemaColumn (NEWLINE schemaColumn)*)? '}'
#
# EXPECTED OUTPUT:
#   مخطط declared

مخطط Persona {
    column string اسم
    column int aetas
}

main {
    print "schema declared"
}

Expected output:

schema declared