home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / rexx / 970 < prev    next >
Encoding:
Text File  |  1992-09-09  |  2.0 KB  |  48 lines

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