X-Git-Url: https://thelambdalab.xyz/gitweb/index.cgi?p=forth.jl.git;a=blobdiff_plain;f=src%2Flib_5_strings.4th;h=56a2174bf1325c2c87a0ab4f5e838dcadfd009a5;hp=bc2d69ccfc6d8f9493cbe4ec0eec0ade2599f9cb;hb=c52194127d604bd365f7222936b46f34f62a4814;hpb=213140aac1ad3c08a74dd5eea06464c474d54cd2 diff --git a/src/lib_5_strings.4th b/src/lib_5_strings.4th index bc2d69c..56a2174 100644 --- a/src/lib_5_strings.4th +++ b/src/lib_5_strings.4th @@ -45,11 +45,11 @@ 0 , ( dummy length - we don't know what it is yet ) BEGIN - >IN @ #TIB @ >= IF \ End of TIB? - QUERY \ Get next line + >IN @ #IB @ >= IF \ End of TIB? + QUERY-INPUT \ Get next line THEN - TIB >IN @ + @ 1 >IN +! \ Get char from TIB + IB >IN @ + @ 1 >IN +! \ Get char from TIB DUP [CHAR] " <> WHILE @@ -73,11 +73,11 @@ right-paren to the terminal. ) : .( BEGIN - >IN @ #TIB @ >= IF \ End of TIB? - QUERY \ Get next line + >IN @ #IB @ >= IF \ End of TIB? + QUERY-INPUT \ Get next line THEN - TIB >IN @ + @ 1 >IN +! \ Get char from TIB + IB >IN @ + @ 1 >IN +! \ Get char from TIB DUP [CHAR] ) = IF DROP ( drop the double quote character )