Boo Language Guide
Introduction
This document is simply a cut and paste of the contents of http://boo.codehaus.org/Language+Guide.
I am not claiming ownership of any of the content merely putting in a form that I can use when I don't
have an internet connection.
Table of Contents
Boo Language Guide.................................................................................................................................1
Introduction...........................................................................................................................................1
Basic Features of Boo...........................................................................................................................7
Structure of a Boo Script.................................................................................................................7
Import...............................................................................................................................................9
Single Line Comments....................................................................................................................9
Multiline Comments........................................................................................................................9
Builtin Functions Summary...........................................................................................................10
array................................................................................................................................................10
array(object as IEnumerable).........................................................................................................10
array(type as Type, collection as ICollection)...............................................................................10
array(type as Type, enumerable as IEnumerable).........................................................................10
array(type as Type, size as int)......................................................................................................10
BooVersion.....................................................................................................................................10
enumerate.......................................................................................................................................10
enumerate(enumerable as object) as EnumerateEnumerator........................................................10
gets.................................................................................................................................................11
gets()...............................................................................................................................................11
iterator............................................................................................................................................11
iterator(enumerable as object) as IEnumerable.............................................................................11
join..................................................................................................................................................11
join(enumerable as IEnumerable)..................................................................................................11
join(enumerable as IEnumerable, seperator as Char)....................................................................11
map.................................................................................................................................................11
map(enumerable as IEnumerable, function as ICallable).............................................................11
matrix.............................................................................................................................................12
matrix(elementType as Type, length as (int))................................................................................12
print................................................................................................................................................12
print(object as Object)...................................................................................................................12
prompt............................................................................................................................................12
prompt(query as string)..................................................................................................................12
range...............................................................................................................................................12
range(max as int)...........................................................................................................................12
range(begin as int, end as int)........................................................................................................13
range(begin as int, end as int, step as int)......................................................................................13
reversed..........................................................................................................................................13
reversed(enumerable as object) as IEnumerable...........................................................................13
shell................................................................................................................................................13
shell(filename as string, arguments as string)...............................................................................13
shellm(filename as string, arguments as (string) )........................................................................13
shellp(filename as string, arguments as string).............................................................................13