On Mon, 1 May 2023 20:13:36 -0400, Phil Smith III  wrote:
>    ...
>parse var option keyword '(' value ')' +1 paren
>
ITYM:
 parse var option keyword '(' value ')' +0 paren +1 .
>
>if paren = ')' then /* It's nested! */
>...
>This can, of course, be made more iterative. It ain't that pretty, but it's 
>not too hard to do. I can even imagine a function that returns multiple nested 
>values, at least to the Rexx implementation limit (typically 250).
>
It's the curse of the TRT instruction.  It's a great hammer; performs great;
but everything has to look like a nail.  No good for recursive descent for
something such as:
    trace I; say ((3+4)*5+6)*7

And I can't forgive that there's no way to escape the command separator, ";".
(That's largely bad layering in the design.  I will be told, "Just pick a 
character
you won't use!"  There is almost none such.  Sometimes I set it to "¾".
But it would be better to have it when I need it and quote it when I don't.

-- 
gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to