渲染zh-Hant

行

Translation status: 繁體中文 reader-locale proof. Term names and code fences follow the zh-Hant pack; supporting prose may still be English.

Reads one line of input.

Syntax: 讀取 行

Category#

io

Examples#

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

Reads one line of input.

# =============================================================================
# 行 — Reads one line of input.
# =============================================================================
#
# What this teaches:
#   • line-oriented input mode — `讀取 行` reads a single line from stdin
#
# Common mistakes:
#   • Confusing 行 (reads one line without trailing newline) with 註記 (writes diagnostic output with newline).
#
# See also: 讀取
# =============================================================================

# 行 — line-oriented 讀取 read
#
# GRAMMAR:
#   readMode :← '讀取' '行'
#
# EXPECTED OUTPUT:
#   Scalar stdout smoke (see body).
#
# BACKEND:
#   Rust/Go/roundtrip whitelist like 讀取/lege.fab.
#

main {
    print "lineam exemplum — stdin read deferred in harness"
}

Expected output:

lineam exemplum — stdin read deferred in harness