home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / lang / rexx / 953 < prev    next >
Encoding:
Internet Message Format  |  1992-09-08  |  1.8 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: Regular expression syntax
  5. Message-ID: <MARTINC.92Sep8200040@grover.cs.unc.edu>
  6. Date: 9 Sep 92 00:00:40 GMT
  7. References: <19920908084344SEB1525@MVS.draper.com> <2414.imc@uk.ac.ox.prg>
  8. Sender: news@cs.unc.edu
  9. Organization: UNC Department of Computer Science
  10. Lines: 23
  11. In-reply-to: imc@comlab.ox.ac.uk's message of 8 Sep 92 16:12:49 GMT
  12.  
  13. After a fair bit of thought about it, I'm becoming more and more
  14. convinced -- brace yourselves -- that the better solution is to make a
  15. regular expression syntax the PRIMITIVE notion in rexx, and make all the
  16. current semantics abbreviations for some r.e.
  17.  
  18. After all, we're guaranteed that anything we want to do with rexx is
  19. going to be finite-state; we can't lose any semantic power by doing so.
  20. But we make available lots of potential power that doesn't appear to be
  21. there now.  A regular expression compiler and interpreter is a
  22. straightforward exercise, and would probably be simpler than handling a
  23. lot of special cases.  And by having the power of a full FSA available,
  24. we can avoid worrying about what whitespace etc is, because anyone can
  25. get exactly the desired semantics by explicitly coding the approriate
  26. r.e., while not changing the overlaid "old rexx" language in any way.
  27. --
  28. Charles R. Martin/(Charlie)/martinc@cs.unc.edu/(ne crm@cs.duke.edu) 
  29. O/Dept. of Computer Science/CB #3175 UNC-CH/Chapel Hill, NC 27599-3175
  30. H/3611 University Dr #13M/Durham, NC 27707/(919) 419 1754
  31. ----------------------------------------------------------------------
  32. "I am he who walks the States with a barb'd tongue, questioning every
  33. one I meet,/Who are you that wanted only to be told what you knew
  34. before?/ Who are you that wanted only a book to join you in your
  35. nonsense?"  _Leaves of Grass_ xxiii.4.
  36.