Measures Concepts
GitHub icon

Occam

Occam - Programming language

< >

Occam is a programming language created in 1983 by David May.

#188on 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...


Example from hello-world:
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!")
Example from Wikipedia:
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

Language features

Feature Supported Token Example
Strings ✓ "
"Hello world"
Print() Debugging ✓ write.full.string
Semantic Indentation ✓

View source

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