Encyclopedia > SNOBOL programming language

  Article Content

SNOBOL

Redirected from SNOBOL programming language

SNOBOL4 (StriNg Oriented symBOlic Language number 4) is the fourth and final incarnation of a series of special purpose programming languages for character string manipulation. These languages were developed between 1962 and 1967 at AT&T Bell Laboratories by David J. Farber[?], Ralph E. Griswold[?] and Ivan P. Polonsky[?].

The SNOBOL4 language supports a number of built-in data types, such as integers and limited precision real numbers, strings, patterns, arrays, and tables[?], and also allows the programmer to define additional data types and new functions. It stands apart from the mainstream programming languages of that time by having patterns as a first-class data type (i.e. a data type whose values can be manipulated in all ways permitted to any other data type in the programming language) and by providing operators for pattern concatenation and alternation. Strings generated during execution can be treated as programs and executed.

A SNOBOL4 pattern can be very simple or extremely complex. A simple pattern is just a text string (e.g. "ABCD"), but a complex pattern may be a large structure describing, for example, the complete grammar of a computer language.

SNOBOL provides the programmer with a rich assortment of features including some rather exotic ones. As a result it is possible to use SNOBOL as if it were an object-oriented language, a logical programming language, a functional language or a standard imperative language by changing the set of features used to write a program.

It is normally implemented as an interpreter because of the difficulty in implementing some of its very high-level features, but there is a compiler, SPITBOL, which provides nearly all the facilities that the interpreter provides.

In the 1970s and 1980s, SNOBOL4 was widely used as a text manipulation language in the humanities. In recent years, its popularity has faded as newer and more efficient languages such as Awk and Perl have made string manipulation by means of regular expressions popular. SNOBOL 4 is now a special interest language used mainly by enthusiasts. The Icon programming language is a descendant of SNOBOL4.

Further Reading

  • Griswold, Ralph E., J. F. Poage, and I. P. Polensky. The SNOBOL 4 Programming Language. Englewood Cliffs, NJ: Prentice Hall, 1968.
  • Hockey, Susan M. Snobol Programming for the Humanities. New York: Clarendon Press; Oxford: Oxford University Press, 1985.

External Links


An earlier version (http://www.nupedia.com/article/210/) of this article was posted on Nupedia.



All Wikipedia text is available under the terms of the GNU Free Documentation License

 
  Search Encyclopedia

Search over one million articles, find something about almost anything!
 
 
  
  Featured Article
Autocracy

... Wikipedia <<Up     Contents Autocracy Autocracy is a form of government which resides in the absolute power of a single individual. The term can ...

 
 
 
This page was created in 44.2 ms