cảnh_báo
Translation status: Tiếng Việt reader-locale proof. Term names and code fences follow the vi pack; supporting prose may still be English.
Writes a warning message.
Syntax: cảnh_báo <expression>
Category#
output
Related#
Examples#
radix/corpus/mone/mone.fab (canonical · keyword)#
Writes a warning message.
# =============================================================================
# cảnh_báo — Writes a warning message.
# =============================================================================
#
# What this teaches:
# • the `cảnh_báo` keyword — emits a warning-style diagnostic (distinct from `ghi_chú`/`xem`)
# • diagnostic output categories — cảnh_báo for warnings vs viết/vide for other I/O
#
# Common mistakes:
# • Confusing cảnh_báo (stderr warning) with ghi_chú (diagnostic info) — cảnh_báo emits warnings, ghi_chú emits neutral informational output.
#
# See also: viết, xem
# =============================================================================
# cảnh_báo diagnostic output
#
# cảnh_báo <expr> -- emit a warning-style diagnostic (distinct from ghi_chú/vide)
#
# GRAMMAR:
# outputStmt :← 'cảnh_báo' expr
#
# EXPECTED OUTPUT:
# mone-style warning diagnostic (single cảnh_báo call).
main {
warn "cave"
}