Questions Concepts
GitHub icon

Karel

Karel - Programming language

< >

Karel is a programming language created in 1981 by Richard E. Pattis.

#696on PLDB 42Years Old

Karel is an educational programming language for beginners, created by Richard E. Pattis in his book Karel The Robot: A Gentle Introduction to the Art of Programming. Pattis used the language in his courses at Stanford University, California. Read more on Wikipedia...


Example from hello-world:
PROGRAM hello_world BEGIN WRITE("Hello World", CR) END hello_world
Example from Wikipedia:
BEGINNING-OF-PROGRAM   DEFINE turnRight AS BEGIN turnLeft; turnLeft; turnLeft; END   BEGINNING-OF-EXECUTION ITERATE 3 TIMES BEGIN turnRight; move END turnoff END-OF-EXECUTION   END-OF-PROGRAM

Language features

Feature Supported Token Example
Strings "
"Hello world"
Print() Debugging WRITE

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