lược_đồ
Translation status: Tiếng Việt reader-locale proof. Term names and code fences follow the vi pack; supporting prose may still be English.
Declares an application-owned relational heading (experimental).
Aliases: relational heading
Syntax: lược_đồ <Name> { cột <type> <name> ... }
Category#
declaration
Related#
Examples#
radix/corpus/schema/schema.fab (canonical · keyword)#
Declares an application-owned relational heading (experimental).
# =============================================================================
# lược_đồ — Declares an application-owned relational heading (experimental)
# =============================================================================
#
# What this teaches:
# • Relational headings — `lược_đồ Name { ... }` names the columns an application reads from a database result.
# • Declaration only — a lược_đồ carries column metadata, not a runtime value, so a program that declares one still runs unchanged.
#
# Common mistakes:
# • Giving a lược_đồ methods or `thực_thi` — a lược_đồ is a heading, not a kiểu; both are rejected at parse time.
#
# See also: cột, kiểu
# =============================================================================
# lược_đồ — relational heading declaration
#
# GRAMMAR:
# schemaDecl :← 'lược_đồ' IDENTIFIER '{' (schemaColumn (NEWLINE schemaColumn)*)? '}'
#
# EXPECTED OUTPUT:
# lược_đồ declared
lược_đồ Persona {
column string tên
column int aetas
}
main {
print "schema declared"
}Expected output:
schema declared