Renderingla

string

Short quoted textus string literals and template application.

Aliases: \"...\"

Syntax: \"<text>\"

Category

literal

Related

Examples

examples/corpus/literalia/textus.fab (canonical · existing-home)

Short quoted textus string literals and template application.

# literalia/textus — "..." string literals
#
# GRAMMAR:
#   stringLit :← '"' ... '"'
#   templateApp :← stringLit '(' expr (',' expr)* ')'
#
# EXPECTED OUTPUT:
#   Salve, Salve, Mundus!

incipit {
    fixum _ greeting ← "Salve"
    nota greeting

    fixum _ nomen ← "Mundus"
    fixum _ message ← "Salve, §!"(nomen)
    nota message
}

Expected output:

Salve
Salve, Mundus!