Path: funic!fuug!mcsun!cernvax!chx400!bernina!colbach
From: colbach@nessie.cs.id.ethz.ch (Philippe Colbach)
Newsgroups: comp.sys.handhelds
Subject: CUT Program
Message-ID: <1991Jul8.071557.14387@bernina.ethz.ch>
Date: 8 Jul 91 07:15:57 GMT
Sender: news@bernina.ethz.ch (USENET News System)
Organization: Swiss Federal Institute of Technology (ETH), Zurich, CH
Lines: 68
Nntp-Posting-Host: nessie


    Hi!

The following programs cuts all unnecessary RPL structure elements!
The programs become 10% shorter and quicker. But it will be difficult
to change cut programs in the editor (you have to put cut elements back,
otherwise the editor doesn't except the program structure ... ; I never
wrote a program to do so ...).

CUT program calls OUT-> and ->PRG (contained in the HACKIT library f.e.)
It cuts: 1. [IF] THEN ELSE END
	 2. DO [UNTIL] END
         3. Program markers << and >>
         4. Nullprograms

Example:    << IF THEN DO UNTIL END ELSE END >>
--CUT-->    THEN DO END ELSE END

%%HP: T(1)A(D)F(.);
"D9D2078BF168BC1C53A2167E1AFE22D9D2084E2040F45545D8387C147A20B213
01C432D6E2010F4D6E2010E4E16329C2A2025C1AFE22D9D20D6E2010F49C2A26
C7D147A20E1632B21309C2A26C7D1167E1AFE22D9D20D6E2010F4ED2A292CF18
B9C19C2A290DA1C58C145632D6E2010F497632DCC02B21305DF22B21305DF229
C2A2D6E2010F48B9C10A132D6E201034D6E2010F4D6E2010346C7D178BF168BC
1C53A2167E1AFE22D9D2084E2040F45545D878BF1AFE22D9D2084E2040D80525
749C2A2472C184E203034554545632D6E2010E497632DBBF1B4402B21305BF22
8DBF15DF22B21305BF22D9D2047A20D9D203CE22B2130D9D20DE032B2130D9D2
0D9D20B2130B2130B213092CF19C2A284E2040D80525744BAC1AFE228DBF15BF
22D9D2078BF168BC1D13A2167E1AFE22D9D20D6E2010E4A59C178BF1ED2A276B
A15BCF1DBBF19C2A276BA1387C145632D6E2010E497632DCC02B21305BF22D9D
20D6E2010E4DBBF176BA145632D6E2010E497632DCC02B21305DF22B21305DF2
2B21305DF22C4232D6E2010E4EF532A59C184E2040D8052574B21305DF22B213
0E49E"

The following program is meant as a primitiv CHANGE program
(I wrote this program because cut programs can't be edited):

Syntaxe of CHNG program:
1. Program to be changed           << 'TEST' TEST { TEST } >>
2. Element1 to be changed          'TEST'
3. by element2                     'PRGM'

---CHNG--->                        << 'PRGM' PRGM { TEST } >>

You only can change single elements ...
CHNG calls OUT-> and ->PRG.

%%HP: T(1)A(D)F(.);
"D9D203F2A2A9CF168BC1C53A2279E1AFE22D9D204B2A21C432D6E2010F4D6E20
10E4D6E2010B4E163284E2040F45545D8387C178BF18B9C11C432D6E2010C4D6
E201035E16329C2A2D6E2010350A132D6E201034D6E2010C4D6E2010346C7D17
8BF168BC1C53A2279E1AFE22D9D20D6E2010F4D6E2010E484E20403484E47445
632D6E2010B497632B440245632D6E2010C497632D6E201034E0CF1704D1B213
05BF22D9D20D6E2010F4167E1AFE22D9D2045632D6E2010C497632D6E201034D
6E2010E4704D145632D6E2010B4976324F8028DBF1B21305DF22B21305DF22C4
232D6E2010C4A59C184E2040D8052574EF532D6E2010B4EF532B21305DF22B21
307723"

			.. enjoy ...      Philippe


------------------------------------------------------------------------------
Philippe Colbach    Civil Eng Student    Swiss Federal Institute of Technology
------------------------------------------------------------------------------
Lerchenrain 13/04, CH-8046 Zurich     |   36b, rue A. Meyer, L-2153 Luxembourg
Voice: +41/1/3718539                  |   Voice: +352/443590  [Fax: hand over
Email: colbach@nessie.cs.id.ethz.ch   |   Fax:   +352/446931   to Jos Colbach]
------------------------------------------------------------------------------
