[retroforth] Re: factoring request

  • From: "Helmar Wodtke" <helmwo@xxxxxx>
  • To: retroforth@xxxxxxxxxxxxx
  • Date: Sun, 24 Oct 2004 00:14:05 +0200

-- Attached file included as plaintext by Ecartis --

retroforth@xxxxxxxxxxxxx schrieb am 23.10.04 21:55:52:
> 
> Hi Charles,
> 
> would you mind factoring two words in the assembler part of
> retroforth for me? I'm concerned with CREATE and S".
> 
> In both cases I'd like to have the parsing of the following
> string split off the actual function.

You want to have a possibility to compile a string literal?

Eg.:
forth
: dosomething, [ ' type ] literal compile [ ' cr ] literal compile ;
macro
: bla" m: s" dosomething, ;
forth
: test bla" blabla" ;
----------------------
test
============
blabla


(I did not test...)
Bis dann,
Helmar


-- Binary/unsupported file stripped by Ecartis --
-- Type: text/x-vCard
-- File: Helmar Wodtke.vcf



-- Binary/unsupported file stripped by Ecartis --
-- Type: application/x-pkcs7-signature
-- File: smime.p7s
-- Desc: S/MIME Cryptographic Signature



Other related posts: