Top 1K Features Creators Events Podcasts Books Extensions Interviews Blog Explorer CSV

SNOBOL

< >

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

#643on PLDB 62Years Old
REPL · Wikipedia

SNOBOL (StriNg Oriented and symBOlic Language) is a series of computer programming languages developed between 1962 and 1967 at Bell Labs 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 Example Token
Strings ✓ "Hello world" "
Print() Debugging ✓ OUTPUT
Comments ✓ * A comment
Line Comments ✓ * A comment *
Semantic Indentation X

- Build the next great programming language · Add · Issues · About · Search · Keywords · Livestreams · Labs · Resources · Acknowledgements

Built with Scroll v154.3.0