On Mon, 23 Aug 2021, at 23:00, Seymour J Metz wrote:
> I'm looking at a home-grown REXX script that is 1690 lines long, and in 
> some REXX circles it would be considered tiny. It does use external 
> utilities, but is by no means just glue. I'd bet that there are edit 
> macros orders of magnitude larger.

I've got a KEXX macro here that's currently 12,700 lines long.  I'm not 
claiming it's particularly complex though.  A lot of its contents are in 
essence declarations of structured data, so that instead of it reading
and parsing/validating an external data file then if everything is ok 
doing things with the data, the data is in the macro itself so when it 
executes it validates and then processes that inline data.    

A short example of one block of that data is

   call srch "\Sandi Toksvig\"
   call hsepprog "It's Your Round"
   call hsepprog "I've Never Seen Star Wars" 
   call skipprog "News Quiz Extra"
   call skipprog "The News Quiz"                                                
      
   *
   call omit "\|radio|Loose Ends|b054gxpj|\" 
   call send

The "call srch" / "call send" function calls enclose a definition (of BBC
radio programme) search criteria.  There's other similar enclosing pairs
of function calls to define other actions.

When the file is open in Kedit there's context-specific editing functions
(which themselves are coded in many hundreds of lines of Kexx) which
offer me a menu (and sub-menu and in a few cases sub-sub-menus) of
actions for manipulating related entries in the primary script.  

My Kedit KML file (which holds the macro definitions which need to be 
in-memory, plus those I've chosen to load that way) is just under 5400
lines long at the moment.


I have a handful of Kedit / KEXX macros which are (of course) mainly
meant to be run from the Kedit command line, but also work from 
a Windows cmd.exe terminal window under ooREXX.  The longest of
those is about 4100 lines long.

-- 
Jeremy Nicoll - my opinions are my own.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to