string
Translation status: العربية reader-locale proof. Term names and code fences follow the ar pack; supporting prose may still be English.
Short quoted نص string literals and template application.
Aliases: \"...\"
Syntax: \"<text>\"
Category#
literal
Related#
Examples#
radix/corpus/literalia/textus.fab (canonical · existing-home)#
Short quoted نص string literals and template application.
# =============================================================================
# string — Short quoted نص string literals and template application.
# =============================================================================
#
# What this teaches:
# • double-quoted string literals `"..."` — the standard نص syntax
# • template application with `§` placeholders — `"Salve, §!"(اسم)`
#
# Common mistakes:
# • Applying template § to أسكي or بايتات literals — template application works only on نص ("...") string literals.
#
# See also: block-string, §, نص
# =============================================================================
# literalia/textus — "..." string literals
#
# GRAMMAR:
# stringLit :← '"' ... '"'
# templateApp :← stringLit '(' expr (',' expr)* ')'
#
# EXPECTED OUTPUT:
# Salve, Salve, Mundus!
main {
const string greeting ← "Salve"
print greeting
const string اسم ← "Mundus"
const string message ← "Salve, §!"(اسم)
print message
}Expected output:
Salve
Salve, Mundus!