home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / rexx / 908 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  2.0 KB

  1. Path: sparky!uunet!gatech!concert!borg!news_server!martinc
  2. From: martinc@grover.cs.unc.edu (Charles R. Martin)
  3. Newsgroups: comp.lang.rexx
  4. Subject: Re: Blanks, REXX, and portability...
  5. Message-ID: <MARTINC.92Sep6183949@grover.cs.unc.edu>
  6. Date: 6 Sep 92 22:39:49 GMT
  7. References: <REXXLIST%92090516060285@UGA.CC.UGA.EDU>
  8. Sender: news@cs.unc.edu
  9. Organization: UNC Department of Computer Science
  10. Lines: 26
  11. In-reply-to: GOMBERG@UCSFVM.BITNET's message of 5 Sep 92 19:56:47 GMT
  12.  
  13. In article <REXXLIST%92090516060285@UGA.CC.UGA.EDU> GOMBERG@UCSFVM.BITNET (Dave Gomberg) writes:
  14.  
  15.    On Sat, 5 Sep 1992 15:44:05 -0400 cultural elite said:
  16.    >PARSE EXPAND is not such a simple solution, as in some situations it will
  17.    >require tracking both the expanded and unexpanded copies of input lines.
  18.  
  19.    No it wouldn't.  Why would it?   PARSE EXPAND VALUE psrc WITH template means
  20.    the same as $temp=expand(psrc); PARSE VAR $temp template  , right?
  21.  
  22. I think the problem lies in repeated applications of parse, say with
  23. columnar fields.  Say I parse the string "ab\tc" -- importing a little C
  24. terminology to make clear where the tab lies -- with parse expand.  The
  25. tab char should come out to be some number of blanks, as I understand
  26. it. (Probably 6 for canonical tabs.)  But if I parse off the first
  27. field, THEN parse the resulting "\tc", the tab now wants to expand to 8
  28. characters.  You can't keep the two interpretations straight without
  29. storing information about the line as it was for later use by parse.
  30. --
  31. Charles R. Martin/(Charlie)/martinc@cs.unc.edu/(ne crm@cs.duke.edu) 
  32. O/Dept. of Computer Science/CB #3175 UNC-CH/Chapel Hill, NC 27599-3175
  33. H/3611 University Dr #13M/Durham, NC 27707/(919) 419 1754
  34. ----------------------------------------------------------------------
  35. "I am he who walks the States with a barb'd tongue, questioning every
  36. one I meet,/Who are you that wanted only to be told what you knew
  37. before?/ Who are you that wanted only a book to join you in your
  38. nonsense?"  _Leaves of Grass_ xxiii.4.
  39.