Occam is a programming language created in 1983 by David May.
#730on PLDB | 41Years Old |
occam is a concurrent programming language that builds on the communicating sequential processes (CSP) process algebra, and shares many of its features. It is named after William of Ockham of Occam's Razor fame. occam is an imperative procedural language (such as Pascal). Read more on Wikipedia...
PROGRAM Hello
#USE ioconv
SEQ
write.full.string(screen,"Hello World")
PROGRAM Hello
-- Hello world in Occam
#USE ioconv
SEQ
write.full.string(screen,"Hello World!")
ALT
count1 < 100 & c1Â ? data
SEQ
count1Â := count1 + 1
merged ! data
count2 < 100 & c2Â ? data
SEQ
count2Â := count2 + 1
merged ! data
status ? request
SEQ
out ! count1
out ! count2
Feature | Supported | Example | Token |
---|---|---|---|
Strings | ✓ | "Hello world" | " |
Print() Debugging | ✓ | write.full.string | |
Semantic Indentation | ✓ |