Created
November 26, 2022 10:49
-
-
Save neuro-sys/ec5655a153208687e215735ee1b00a73 to your computer and use it in GitHub Desktop.
Revisions
-
neuro-sys created this gist
Nov 26, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,27 @@ : """s s\" \"\"\"s" ; : s""" ( -- caddr u ) begin refill 0= if exit then source """s compare 0= if refill drop ( ignore the line ) 0 c, ( put zero terminator ) exit then source s, \n, again ; ( example ) create sample-string s""" This is a multi line string """s \ Print zero terminated string : ztype ( addr -- ) begin dup c@ emit 1+ dup c@ 0= until drop ; sample-string ztype