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

เตือน

Translation status: ภาษาไทย reader-locale proof. Term names and code fences follow the th-TH pack; supporting prose may still be English.

Writes a warning message.

Syntax: เตือน <expression>

Category#

output

Examples#

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

Writes a warning message.

# =============================================================================
# เตือน — Writes a warning message.
# =============================================================================
#
# What this teaches:
#   • the `เตือน` keyword — emits a warning-style diagnostic (distinct from `บันทึก`/`ดู`)
#   • diagnostic output categories — เตือน for warnings vs เขียน/vide for other I/O
#
# Common mistakes:
#   • Confusing เตือน (stderr warning) with บันทึก (diagnostic info) — เตือน emits warnings, บันทึก emits neutral informational output.
#
# See also: เขียน, ดู
# =============================================================================

# เตือน diagnostic output
#
# เตือน <expr>  -- emit a warning-style diagnostic (distinct from บันทึก/vide)
#
# GRAMMAR:
#   outputStmt :← 'เตือน' expr
#
# EXPECTED OUTPUT:
#   mone-style warning diagnostic (single เตือน call).

main {
    warn "cave"
}