home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.rexx
- Path: sparky!uunet!mcsun!sunic!ugle.unit.no!ugle!anders
- From: anders@lise3.lise.unit.no (Anders Christensen)
- Subject: Re: Eric's question
- In-Reply-To: eric@sejnet.sunet.se's message of Sat, 29 Aug 1992 17:06:23 GMT
- Message-ID: <ANDERS.92Aug29194248@lise3.lise.unit.no>
- Sender: news@ugle.unit.no (NetNews Administrator)
- Organization: University of Trondheim, Norway
- References: <ANDERS.92Aug29050537@lise3.lise.unit.no> <1992Aug29.163731.1@sejnet.sunet.se>
- <1992Aug29.170623.1@sejnet.sunet.se>
- Date: 29 Aug 92 19:42:48
- Lines: 51
-
- In article <1992Aug29.170623.1@sejnet.sunet.se> eric@sejnet.sunet.se (Eric Thomas) writes:
- > In article <ANDERS.92Aug29050537@lise3.lise.unit.no>, anders@lise3.lise.unit.no (Anders Christensen) writes:
-
- > Noooooooooooooooooooo! Forget the NAMES file, [...]
-
- Fine, but it really doesn't change anything with respect to the actual
- parse clause.
-
- > Parse var data a b . ' A('c')' d
-
- You use a Space character in the pattern to denote a whitespace.
- Yes, it creates problems when Tab and Space are both whitespace, and
- parse can't match varying patterns. But the situation will not be any
- better if Rexx interpreters under Unix do not recognize Tab as a
- whitespace character.
-
- Your use of Space in templates make an Unix interpreter trip when it
- encounters a Tab. Recognizing Space as the only whitespace will make
- it trip whenever it encounters a Tab.
-
- > > * You want to be able to use the program on several platforms,
-
- > No, [...]
-
- OK, then your program will continue to work on the CMS machine, since
- the assumptions it makes are correct in that environment.
-
- If you move to Unix machine, then you want to write the rexx script
- from scratch (that's how I understand your 'No'). Then you should use a
- dataformat more suitable for the Unix environment.
-
- > How do I tell the interpreter which of my spaces mean SPACE and which mean
- > white space, given that REXX must accept any literal string?
-
- If you tell it to seek for a literal string, it should seek for a
- literal string. If you want to tell it to seek for a particular string
- containing whitespace, then I don't think parse is able to do that.
-
- Adding regexps would solve this problem by adding more power, but it
- might also adds too much complexity to justify it. There are probably
- very different opinions about that.
-
- > REXX is designed to be easy
- > to learn by people without a DP background. Regular expressions are not
- > precisely intuitive for this type of people :-)
-
- Sure, I agree. But Unix uses Tab as a whitespace character. If Rexx
- interpreters under Unix don't recognize that, that is a problem with
- Rexx under Unix.
-
- -anders
-