BETA is a programming language created in 1983 by Bent Bruun Kristensen and Ole Lehrmann Madsen and Birger Møller-Pedersen and Kristen Nygaard.
#924on PLDB | 41Years Old |
BETA is a pure object-oriented language originating within the "Scandinavian School" in object-orientation where the first object-oriented language Simula was developed. Among its notable features, it introduced nested classes, and unified classes with procedures into so called patterns.. Read more on Wikipedia...
ORIGIN '~beta/basiclib/betaenv'
-- program: Descriptor --
(* Hello World in BETA *)
(# do 'Hello World' -> putLine #)
{ *** Hello World in BETA ***}
(#
do
'Hello World!'->putLine
#)
max: (#
x, y, z: @integer
enter (x, y)
do
(if x >= y // True then
x -> z
else
y -> z
if)
exit z
#)
Feature | Supported | Example | Token |
---|---|---|---|
Strings | ✓ | 'Hello world' | ' |
Comments | ✓ | // A comment | |
Line Comments | ✓ | // A comment | // |
Semantic Indentation | X |