Questions Concepts
GitHub icon

SNOBOL

SNOBOL - Programming language

< >

SNOBOL is a programming language created in 1962 by David J. Farber and Ralph E. Griswold.

#258on PLDB 61Years Old

Try now: Riju

SNOBOL (StriNg Oriented and symBOlic Language) is a series of computer programming languages developed between 1962 and 1967 at AT&T Bell Laboratories by David J. Farber, Ralph E. Griswold and Ivan P. Read more on Wikipedia...


Example from Riju:
OUTPUT = "Hello, world!" END
Example from hello-world:
OUTPUT = "Hello World" END
* Hello World in Snobol OUTPUT = "Hello World!"
Example from Wikipedia:
OUTPUT = "This program will ask you for personal names" OUTPUT = "until you press return without giving it one" NameCount = 0 :(GETINPUT) AGAIN NameCount = NameCount + 1 OUTPUT = "Name " NameCount ": " PersonalName GETINPUT OUTPUT = "Please give me name " NameCount + 1 PersonalName = INPUT PersonalName LEN(1) :S(AGAIN) OUTPUT = "Finished. " NameCount " names requested." END

Language features

Feature Supported Token Example
Strings "
"Hello world"
Print() Debugging OUTPUT
Comments
* A comment
Line Comments *
* A comment
Semantic Indentation X

View source

- Build the next great programming language · Search · Add Language · Features · Creators · Resources · About · Blog · Acknowledgements · Queries · Stats · Sponsor · Traffic · Traffic Today · Day 305 · feedback@pldb.com · Logout