Changeset 40466 in project


Ignore:
Timestamp:
09/08/21 22:45:45 (2 weeks ago)
Author:
Kon Lovett
Message:

add subheaders

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/5/string-utils

    r40462 r40466  
    320320
    321321Extends the read-syntax with #"..." where tagged scheme expressions in the
    322 string are evaluated at runtime.
    323 
    324 Similar to the {{#<#}} multi-line string.
    325 
    326 See [[http://wiki.call-cc.org/man/5/Extensions%20to%20the%20standard#multiline-string-constant-with-embedded-expressions|Multiline String Constant with Embedded Expressions]].
    327 
    328 <enscript language=scheme>
    329 (import utf8-string-interpolation)
    330 
     322string are evaluated at runtime:
     323
     324<enscript>
    331325#"@ #(+ 1 2)## (#'and #1 #2) = #(and 1 2) trailing #"
    332326;=> "@ 3# (and 1 2) = 2 trailing #"
    333327</enscript>
    334328
     329Similar to the {{#<#}} multi-line string.
     330
     331See [[http://wiki.call-cc.org/man/5/Extensions%20to%20the%20standard#multiline-string-constant-with-embedded-expressions|Multiline String Constant with Embedded Expressions]].
     332
    335333'''Note''' Support for the #{<sexpr>} subform is deprecated; use the #<sexpr> form.
    336334
     
    341339</enscript>
    342340
     341or using UTF8
     342
     343<enscript language=scheme>
     344(import utf8-string-interpolation)
     345</enscript>
     346
     347==== Compiler Command-Line
     348
    343349<enscript>
    344 csc -extend string-interpolation ...
    345 </enscript>
     350csc -extend [utf8-]string-interpolation ...
     351</enscript>
     352
     353==== Interpreter Command-Line
    346354
    347355<enscript>
    348 csi -require-extension string-interpolation ...
     356csi -require-extension [utf8-]string-interpolation ...
    349357</enscript>
    350358
    351359Activates string-interpolation {{#"..."}} syntax.
    352360
    353 Substitute {{utf8-string-interpolation}} when UTF8.
     361=== String Interpolation Syntax
    354362
    355363==== Usage
     
    370378; {{PROC}} : {{procedure}} ; interpolation function.
    371379
    372 ==== Usage
    373 
    374 <enscript language=scheme>
    375 (import string-interpolator) ;or (import utf8-string-interpolator)
     380=== String Interpolator
     381
     382==== Usage
     383
     384<enscript language=scheme>
     385(import string-interpolator)
     386</enscript>
     387
     388or using UTF8
     389
     390<enscript language=scheme>
     391(import utf8-string-interpolator)
    376392</enscript>
    377393
Note: See TracChangeset for help on using the changeset viewer.