Article View: comp.lang.misc
Article #4002Re: looking for interpreter / macro language facility
From: Darren New
Date: Wed, 22 May 1991 17:28
Date: Wed, 22 May 1991 17:28
49 lines
2384 bytes
2384 bytes
In article <1991May22.153052.30224@wpi.WPI.EDU> ajb@miles.WPI.EDU (Arthur J. Butler) writes:
>hi. i am looking for advice and/or suggestions on an interpreter or
>macro language facility which i plan on adding to my application.
REXX would be a good choice. Check comp.lang.rexx to find out if
there is a REXX interpreter for the environments you are interested
in. I think it's available on IBM mainframes, UNIX, most micros, etc.
It's an algol/basic/pascal-class language with lots more flexibility,
and any command that isn't understood by the interpreter gets
passed to whatever program started the macro. Thus, you could
write a REXX command called "downparagraph" which said
downparagraph:
getline X
while X ~= "" do
downline
getline X
end
(It's been a while, so the syntax may be wrong.) Anyway,
the getline and downline statements are not REXX statements,
so they get bounced back to the calling editor to handle.
Anyway, it's a good idea to check it out, especially since
it handles multiple concurrent appplications at once:
getfiles:
getline X
address command "ftp " || X
getline X
while X ~= "" do
address "FTP-REXX-PORT" "get " || X
getline X
end
address "FTP-REXX-PORT" "bye"
which would get the name of the machine from the current
line in the editor, start up FTP, and then get the files
named on the succeeding lines. It's also a very easy language
to learn and works with lots of other products, which is
a plus compared to learning a new macro language for every
application.
-- Darren
--
--- Darren New --- Grad Student --- CIS --- Univ. of Delaware ---
----- Network Protocols, Graphics, Programming Languages, FDTs -----
+=+ Nails work better than screws, when both are driven with hammers +=+
Technical Details
Message-ID:
<54366@nigel.ee.udel.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!udel!ee.udel.eduReferences:
<1991May22.153052.30224@wpi.WPI.EDU>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!zaphod.mps.ohio-state.edu!wuarchive!udel!ee.udel.edu From: new@ee.udel.edu (Darren New) Newsgroups: comp.lang.misc,comp.lang.c,comp.lang.c++ Subject: Re: looking for interpreter / macro language facility Message-ID: <54366@nigel.ee.udel.edu> Date: 22 May 91 17:28:09 GMT References: <1991May22.153052.30224@wpi.WPI.EDU> Sender: usenet@ee.udel.edu Followup-To: comp.lang.misc Organization: University of Delaware Lines: 49 Nntp-Posting-Host: snow-white.ee.udel.edu