home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!concert!borg!news_server!martinc
- From: martinc@grover.cs.unc.edu (Charles R. Martin)
- Newsgroups: comp.lang.rexx
- Subject: Re: Blanks, REXX, and portability...
- Message-ID: <MARTINC.92Sep7104222@grover.cs.unc.edu>
- Date: 7 Sep 92 14:42:22 GMT
- References: <REXXLIST%92090701303986@UGA.CC.UGA.EDU>
- Sender: news@cs.unc.edu
- Organization: UNC Department of Computer Science
- Lines: 32
- In-reply-to: GOMBERG@UCSFVM.BITNET's message of 7 Sep 92 05:28:31 GMT
-
- Is the point that they need to match the tab in POS? Or was that a base
- canard introduced in the flaming? I myself would be *real* surprised at
- a substring position operation that matched both blank and tab in this
- context.
-
- But I think the point is that in the parse operation, with something
- like
-
- line='foo bar bletch' /* that's <space><tab> */
- parse var line a b c
-
- it makes sense to have a='foo', b='bar', and c='bletch', and to have
- parse eat both whitespace characters just as it already eats any string
- of blanks between non-blank maximals. I can't think of much of a
- context in which this wouldn't be a (the?) sensible interpretation, and
- you can easily write a parse specification that will get blanks
- specifically if that's what you want.
-
- I do rather like the idea of having a syntax for general regular
- expression matching in parse, though. (And please don't tell me about
- how rexx is supposed to be a simple end-user language: people are
- writing complicated number-theoretic programs and lisp interpreters in
- rexx.)
- --
- Charles R. Martin/(Charlie)/martinc@cs.unc.edu/(ne crm@cs.duke.edu)
- O/Dept. of Computer Science/CB #3175 UNC-CH/Chapel Hill, NC 27599-3175
- H/3611 University Dr #13M/Durham, NC 27707/(919) 419 1754
- ----------------------------------------------------------------------
- "I am he who walks the States with a barb'd tongue, questioning every
- one I meet,/Who are you that wanted only to be told what you knew
- before?/ Who are you that wanted only a book to join you in your
- nonsense?" _Leaves of Grass_ xxiii.4.
-