PLDB
Languages Features Calendar CSV Lists Blog About Sponsor Add Language
GitHub icon

Boo

Boo

Boo is a pl created in 2003 by Rodrigo B. De Oliveira.

#218on PLDB 19Years Old 861Users
0Books 0Papers 232Repos

Try now: Riju · TIO

Boo is an object-oriented, statically typed, general-purpose programming language that seeks to make use of the Common Language Infrastructure's support for Unicode, internationalization, and web applications, while using a Python-inspired syntax and a special focus on language and compiler extensibility. Some features of note include type inference, generators, multimethods, optional duck typing, macros, true closures, currying, and first-class functions. Boo was one of the three scripting languages for the Unity game engine (Unity Technologies employed De Oliveira), until it was dropped in 2014 due to small userbase. Read more on Wikipedia...


Example from Riju:
print "Hello, world!"
Example from hello-world:
print "Hello World"
Example from the Hello World Collection:
# Hello World in Boo print "Hello World"
Example from Wikipedia:
def fib(): a, b = 0L, 1L # The 'L's make the numbers double word length (typically 64 bits) while true: yield b a, b = b, a + b # Print the first 5 numbers in the series: for index as int, element in zip(range(5), fib()): print("${index+1}: ${element}")

Language features

Feature Supported Example Token
MultiLine Comments
Integers
# \d+
Floats
# (\d+\.\d*|\d*\.\d+)([fF][+-]?[0-9]+)?
Hexadecimals
# 0x[a-fA-F0-9]+
Octals
# 0\d+
Strings
"Hello world"
"
Print() Debugging print
Comments
# A comment
Line Comments
# A comment
#
Semantic Indentation
s-expressions.html · boo.html · mercury.html

View source

PLDB - Build the next great programming language · v2022 · Day 31 · Docs · Build · Acknowledgements · Traffic Today · Traffic Trends · Mirrors · GitHub · feedback@pldb.com