gforth
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [gforth] Using Gforth with #! "shebang"


From: Bernd Paysan
Subject: Re: [gforth] Using Gforth with #! "shebang"
Date: Thu, 22 Nov 2012 13:00:04 +0100
User-agent: KMail/4.8.5 (Linux/3.4.11-2.16-desktop; KDE/4.8.5; x86_64; ; )

Am Donnerstag, 22. November 2012, 05:10:41 schrieb David Kuehling:
> >>>>> "Bernd" == Bernd Paysan <address@hidden> writes:
> >> And the "#0 [IF]" works even for existing Gforth installations, so it
> >> seems at least as good.
> > 
> > Probably not in gforth-0.6.0... but in general, I think all it needs
> > is documentation.
> 
> This should work without needing non-standard literals:
> : ## ; 0 [IF]
> 
> ...
> [THEN]

# is the Forth200x decimal number prefix, so it's standard.  That's a good 
thing, making this multi-line shebang (almost) fully standard Forth, so all a 
Forth needs is the #! comment command.

-- 
Bernd Paysan
"If you want it done right, you have to do it yourself"
http://bernd-paysan.de/

Attachment: signature.asc
Description: This is a digitally signed message part.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]