( comp: -- <string> | exec: addr len )" />

s"  ( comp: -- <string> | exec: addr len )

published: 17 January 2022 / updated 16 February 2022

Lire cette page en français

 

vocabulary: forth

In interpretation, leaves on the data stack the string delimited by "

In compilation, compiles the string delimited by "

When executing the compiled word, returns the address and length of the string...

Example:

\ header for DUMP 
: headDump 
    s" --addr----- 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F" 
  ; 
headDump        \ push addr len on stack 
headDump type   \ display: --addr----- 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 

Legal: site web personnel sans commerce / personal site without seling