Overview Module Function Class Tea 3.2.2 Reference Documentation
© 2007 PDM&FC

Module tea.lang

Set of functions that makes up the core functionalities of the Tea language.

Function Summary
apply Invokes a a function with a given set of arguments.
block? Checks if a given object is a code block.
bool? Checks if a given object is a boolean value.
break Ends the looping of the flux control functions.
catch Executes a code block and checks if any errors were thrown.
cond Returns one of several possible values, depending on the boolean value of several conditions.
continue Ends the current execution of the body of the flux control functions and continues with the next iteration.
define Creates a variable in the current context and initializes it with the given value or a newly created function.
echo Sends a string to the process standard output stream followed by an "end of line" sequence.
error Generates a run-time error.
exec Executes the Tea code represented by a code block object.
exit Terminates the execution of the current process.
float? Checks if a given object is a float object.
foreach Executes a block of code for each of the elements in a list.
function? Checks if a given object is a function object.
get Fetches the contents of a variable.
global Creates a variable in the outermost context.
if Returns one of two possible values, depending on the boolean value of the first argument.
import Executes Tea code read from a file.
int? Checks if a given object is an integer object.
is Identity function.
lambda Creates a new function.
load Dynamically loads new Tea functions and objects from a Java class.
load-function Dynamically loads new Tea function from a Java class.
map Invokes a a function repeatedly for a given set of arguments.
map-apply Repeatedly executes a function.
not-null? Checks if a given object is not the null object.
not-same? Checks if two objects are not the same object.
null? Checks if a given object is the null object.
pair? Checks if a given object is a pair object.
return Ends the execution of the body of a function and exits from the function.
same? Checks if two objects are the same object.
set! Modifies the contents of a variable.
sleep Suspends the execution of the current thread for a given period.
source Executes Tea code read from a file or from an input stream.
string? Checks if a given object is a string object.
symbol? Checks if a given object is a symbol object.
system Runs a native platform process.
tea-get-system-properties Fetches an hashtable containing the Java system properties.
tea-get-system-property Fetches the value of a Java system property.
tea-lock-acquire Acquires a lock to enter an exclusive code section.
tea-lock-release Releases a previously acquired lock.
tea-set-system-property Sets the value of a Java system property.
tea-shared-define Creates a variable shared between all the Tea interpreters running in a JVM.
tea-shared-defined? Checks for the existence of a shared variable.
tea-shared-get Fetches the value of a shared variable.
tea-shared-set! Modifies the value of a shared variable.
time Times the execution of a block.
while Executes a block of code repeatedly while a condition evaluates to the true boolean value.

Overview Module Function Class Tea 3.2.2 Reference Documentation
© 2007 PDM&FC
Report a bug or request new features
© 2007