Do you already know how to program in some other language? If you do, then just do dir and load the demos and you can look at their code to learn the language, like I did. It's lua script. The API functions and their arguments are on the TIC main page, and the ones that have -> are the ones with return values. If you look in the changelog you can probably figure out what most of them do.
If you don't know how to program, then... <reasonably detailed explanation will be given if this is the case>