Karel is a programming language created in 1981 by Richard E. Pattis.
#837on PLDB | 43Years 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...
PROGRAM hello_world
BEGIN
WRITE("Hello World", CR)
END hello_world
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
Feature | Supported | Example | Token |
---|---|---|---|
Strings | ✓ | "Hello world" | " |
Print() Debugging | ✓ | WRITE |