String
Constructors
| Constructor | Fields | Description |
|---|---|---|
DoubleQuoted | contents: [Antiquoted Text] | Standard string "..." |
Indented | indent: Int, parts: [Antiquoted Text] | Multi-line indented string ''...'' |
Description
String represents the contents of a string literal (not the expression wrapper). The expression-level node is Str which wraps a String.
String parts are Antiquoted Text: either Plain text, Antiquoted expressions, or EscapedNewline (indented strings only).
Pages
String Parts (Antiquoted)
See Antiquoted for:
Plain: literal textAntiquoted: embedded expression${...}EscapedNewline:\newline in indented strings
Related
- Str: expression wrapper
- Antiquoted: string parts
Nix Library Access
syntax.mkStr (syntax.mkDoubleQuoted [syntax.mkPlain "hello"])
syntax.mkStr (syntax.mkIndented 2 [syntax.mkPlain "hello\nworld"])