Questions Concepts
GitHub icon

Boo

Boo - Programming language

< >

Boo is an open source programming language created in 2003 by Rodrigo B. De Oliveira.

#226on PLDB 20Years Old 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"
# 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 Token Example
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
Type Inference
Semantic Indentation

View source

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