home .. forth .. colorforth mail list archive ..

[colorforth] colorforth code in ASCII


We visited this issue a month or so ago, when I published a hello world
program here on the list, using an ascii encoding using \X, where the X is
the icon that you press in the editor to get into whatever color. Very
much along the lines being proposed here.

On seeing it, Chuck commented that we should just use a normal Forth
style: : for defining words, ( for comments, and so on. In that style, we
get something like:

  hex 
  : bsy 1f7 p@ 80 and if bsy ; then ;

On Sat, 1 Jun 2002, George Morrison wrote:

> Jonathan Walther wrote:
> > 
> > Georges way is more visually distinctive, and for me, easier to read.
> > The '~' sets the tags apart from normal words.
> > 
> > Jonathan
> > 
> > On Sat, Jun 01, 2002 at 12:52:08PM -0700, Dirk Harms-Merbitz wrote:
> > >red bsy h# 1f7 p@ h# 80 and if bsy ; then ;
> > >> d~ bsy h# 1f7 p@ h# 80 and if bsy ; then ;
> 
> Besides which, the colour names are already colorforth words.
> 
> 
------------------------

To Unsubscribe from this list, send mail to Mdaemon@xxxxxxxxxxxxxxxxxx with:
unsubscribe ColorForth
as the first and only line within the message body
Problems   -   List-Admin@xxxxxxxxxxxxxxxxxx
Main ColorForth site   -   http://www.colorforth.com