🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: net.lang.apl
Article #18

More on ASCII APL

#18
From: ihuxiotto
Date: Thu, 08 Apr 1982 22:07
34 lines
1395 bytes
Simply using lower case names for APL characters does not neatly handle
the problem of discussing APL strings in ASCII.  Normally, to be
readable, such lower case names must be prefixed and suffixed with
blanks, but this can be incorrect in many cases.  For example, what is
the meaning of the following simple string (origin 1)?

       'delta slope bar epsilon or'[2]

This could be interpreted to be any of the following:

       The APL "slope" character
       The APL "slope bar" character
       A blank

Compressing the spaces out to try to clarify the situation makes the
line difficult to parse by people (quick now, is the last character
in the string below a "nor" or an "or"?) and it still doesn't handle
the overstruck character problem:

       'deltaslopebarepsilonor'[2]

The following may be ugly, but for practical situations it is clearer:
 
      '@H.CB@E.OR'[2]

The beginning of each APL character is easily discerned, and (best of
all) it should be possible to write a simple C program to read in
strings like this, transform them into correct APL, and write them
out to disk for reading by an APL interpreter.


George Otto
Bell Labs, Indian Hill
Technical Details
Message-ID: <anews.Aihuxi.125>
Path: arc1-ca.pugleaf.net!utzoo!decvax!harpo!ihnss!ihuxi!otto

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!decvax!harpo!ihnss!ihuxi!otto
From: ihuxi!otto
Newsgroups: net.lang.apl
Subject: More on ASCII APL
Date: Thu, 08 Apr 1982 22:07:11 +0000
Message-ID: <anews.Aihuxi.125>