home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!gatech!paladin.american.edu!auvm!DKNKURZ1.BITNET!RZOTTO
- X-Acknowledge-To: <RZOTTO@DKNKURZ1>
- Message-ID: <REXXLIST%92090916184891@DEARN>
- Newsgroups: comp.lang.rexx
- Date: Wed, 9 Sep 1992 15:49:30 MEZ
- Sender: REXX Programming discussion list <REXXLIST@UGA.BITNET>
- From: Otto Stolz <RZOTTO@DKNKURZ1.BITNET>
- Subject: Re: Reading inline "code" as input?
- In-Reply-To: Message of Wed,
- 9 Sep 92 11:27:24 GMT from <kiehl@IBT013.IBT.KFA-JUELICH.DE>
- Lines: 34
-
- On Wed, 9 Sep 92 11:27:24 GMT Horst Kiehl said:
- > If the XXEncoded stuff can include REXX comment delimiters
- > ('/*' and '*/'), single or double quotes, you probably have to use a
- > different method to include it in the REXX program.
-
- No problem here: XXENCODEd stuff consists entirely of letters "a" to "z",
- "A" to "Z", the digits "0" to "9", and the "+" and "-" signs. So, you
- can savely put it in a REXX comment.
-
- > Apparently the OS/2
- > REXX interpreter scans the whole program before interpreting it,
- > detecting any unmatched "/*" or quote. (I don't know if that is
- > demanded by the language definition.)
-
- This is required to resolve function names (unless the name is enclosed
- in quotes): when the interpreter encounters a statement such as
- say sourceline()
- or
- call sourceline, 5
- then it has to scan the whole source for a statement beginning with
- sourceline:
- before it is allowed to invoce the built-in sourceline function.
- Of course, it has to skip comments and strings while scanning for a
- statement. Hence, every decent REXX interpreter will alert you from
- unmatched comment delimiters, or unmatched string quotes, when you
- invoke a function the 1st time in your program.
-
- > (Aside, an unmatched "*/", outside comments, is allowed.)
- This is a sloppy implementation. Your interpreter should warn you of
- unmatched closing delimiters, as well.
-
- Best wishes,
- Otto Stolz <RZOTTO@DKNKURZ1.Bitnet>
- <RZOTTO@nyx.uni-konstanz.de>
-