From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b36dd33f588facee X-Google-Attributes: gid103376,public From: sb463ba@l1-hrz.uni-duisburg.de (Georg Bauhaus) Subject: Re: gnat.spitbol.patterns.match(...) Date: 2000/10/07 Message-ID: <8rnbfv$hj6$1@news-hrz.uni-duisburg.de>#1/1 X-Deja-AN: 678656640 References: <8rj38u$1d6$1@nnrp1.deja.com> <3A04F805.AB1D83DA@telepath.com> Organization: Gerhard-Mercator-Universitaet - Gesamthochschule Duisburg Newsgroups: comp.lang.ada Date: 2000-10-07T00:00:00+00:00 List-Id: Ted Dennison (dennison@telepath.com) wrote: : Well...a lot of that was SPITBOL (a regular expression language). Not beeing the one to judge SNOBOL4, but still having intense looks at it (and using it), thus finding "a regular expression language" rather misleading (for reasons in addition to those Robert Dewar has already given), here is a quote from J. Gimpel, Algorithms in SNOBOL4: "The SNOBOL series of programming languages through SNOBOL4 had only one datatype, the string. Even the arithmetic facilities of SNOBOL3 were implemented as operations on strings of digits rather than on machine integers. Because of this historical bias, and because the language is extaordinarily rich in string handling, SNOBOL4 is still regarded by some as exclusively a string language. Yet, all the basic facilities which one expects in a list processing language have been incorporated into SNOBOL4; these include the automatic allocation and freeing of storage, recursive functions, the pointer, and the data structure. Moreover, the notation is, for the most part, conventional, convenient and flexible. Were SNOBOL4 suddenly stripped of all its pattern matching capabilities, it would still be a powerful and convenient list-processing language." (p. 80) And easy enough to use! :-) With the GNAT library, and the ./examples directory, you get Ada with it's facilities combined with some from SNOBOL4, to make a handy toolset for, e.g. data preparation (called "data laundry", I believe, think of CGI as one example). NOte that Ada has types, so SNOBOL4's dodn't have to be "imported" :>. IMHO