Thanks Dom, you beat me to it!  I had been thinking about Walter's request over night and came up with the same approach that you did.  I didn't get a chance to write any code before I read your post.  Nicely done!

Gil

On 9/25/2025 6:59 PM, [email protected] wrote:
Hi Walter,

I don't think you need a new Rexx.exe since ooRexx programs themselves have
the ability to load, manipulate and run other source code. If I've
understood correctly your requirement can be met using this mechanism since
I think all you are looking for is ::OPTIONS ALL SYNTAX to be assumed (or
otherwise added, read on....) and this can be done with an ooRexx wrapper
program

Attached is an example which will treat the first arg word as a program name
(the .rex or other extension is required in this basic version) and the
remainder as an argument string. It will load the source of the program and
add '::OPTIONS ALL SYNTAX'  before translating and running it, with its own
syntax handler to catch any errors thrown when translating or running  the
program.

It does have some limitations - it won't assume any of the known ooRexx file
extensions, parse the name/path of a program containing spaces and
surrounded by double quotes, or search the path (and I'm sure there are many
others I've not thought of) but it ought to be possible to add these
features without too much trouble

Example Usage:

RunAllSyntax myprog.rex arg1 arg2

Hope this helps!

Best Regards,
Dom

-----Original Message-----
From: WalterPachl via Oorexx-devel <[email protected]>
Sent: 25 September 2025 20:01
To: Open Object Rexx Developer Mailing List
<[email protected]>
Cc: WalterPachl <[email protected]>
Subject: [Oorexx-devel] Options all syntax...


Could I get a rexx.exe that behaves as if I had added options all syntax to
my program?
This would satisfy my desire to have Signal On Novalue as default!
Thanx
Walter


_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

--
Gil Barmwater



_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to