home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.rexx
- Path: sparky!uunet!mcsun!sunic!sejnet.sunet.se!eric
- From: eric@sejnet.sunet.se (Eric Thomas)
- Subject: Re: Blanks, REXX, and portability...
- Message-ID: <1992Sep7.191217.1@sejnet.sunet.se>
- Lines: 35
- Sender: news@sunic.sunet.se
- Reply-To: ERIC@SEARN.SUNET.SE
- Organization: SUNET, Stockholm, Sweden
- References: <REXXLIST%92090701365930@UGA.CC.UGA.EDU> <MARTINC.92Sep7110759@grover.cs.unc.edu>
- Date: Mon, 7 Sep 1992 19:12:17 GMT
-
- In article <MARTINC.92Sep7110759@grover.cs.unc.edu>, martinc@grover.cs.unc.edu (Charles R. Martin) writes:
- > I think the contention is that
- >
- > parse arg a b c
- >
- > ought to be a synonym for
- >
- > parse upper arg with a<<\b|\t>+>b<<\b|\t>+>c
- >
- > Now if we had that, I don't see immediately what the need for parse
- > expand would be;
-
- Conversely, given PARSE EXPAND I don't see what the need for changing the
- definition of all functions which deal with words, leading/trailing blanks and
- so on would be. Compatibility with prior applications is guaranteed, and the
- language only needs to be changed in one place.
-
- > in fact, given that the simple identity doesn't hold
- > after parse expand, maybe the whole idea is broken.
-
- PARSE does not respect identity when using word parsing (ie PARSE something A B
- as opposed to column or literal string parsing), because it quietly removes an
- arbitrary amount of blanks. The only case where identity is preserved is when
- you do not use word parsing. This is true regardless of the definition you use
- for white space.
-
- > But the idea of embedded general regular expressions in parse is such a
- > nice one, and seems like such a natural extension to the existing parse,
- > that I think it ought to be seriously considered.
-
- > parse upper arg with a<<\b|\t>+>b<<\b|\t>+>c
-
- Nice? Natural? I see.
-
- Eric
-