introduction | taakStatements | data types | expressions | built-in functions
about
taakServlet
taakScript
raves
 
 
 

Introduction

taak supports the following data types:

Type Description Literals
boolean A logical value: true or false. true, false
integer An integral number. 0, 987
float A floating point number. 1.2, .988, 34.34e+98, 9e-8
string Character data. String literals may be delimited by double or single quotes. "Buzz O'neil" '<a href="foo.htm" />'
list A mutable sequence, same as java.util.List. A list may contains nonhomogeous elements including other lists. [][1,"two",3][1, [2,3]]
Other Java classes. Taak can also work with any Java class available in the classpath. Java classes in the packages java.lang and java.util do not have to be qualified. Java classes are instantiated using the new operator.

 

Numeric Types Conversions

taak automatically convert between numeric types as needed. If a binary operator is invoked on an integer argument and a float argument, the integer argument is automatically converted to a float. If a float is passed as argument to a function of method that expects an integer, the float is converted to an integer.