Home      Downloads             Documentation      FAQ     

Documentation>ETP-Basic reference>Presentation

 

ETP-BASIC presentation
It is a language created to program easily on Texas Instruments calculators (TIs).

The compiler recognize differents types of variable. Integers (16 bits), long integers (32 bits) and character strings, that are a special type of variable. In near future, there will be numbers with floating point. Every type is signed because it is easier to use.

Here are the keywords and the corresponding definition :

Integer (16 bits signed) must be less than 32768
Long (32 bits signed) must be less than 2147483648
String Character string

The String type seems to be dynamic to the user when he programs, because the size of the string can change. You can declare a variable as a string and affect to it another string with a different size. This language has been created in order to find the balance between easy programming and memory used during execution. Strings are table with characters inside, max 50, so they are static. During execution, there is no checking of the length of the string, and no exception is risen.

The entry of the program is the MAIN procedure.

You can create some variables, local or public. It is used for programming recursions.

You can define your own variable types.

Arrays with any dimension are supported.

If two function have the same name, the overload should be set on, but it is not prepared yet. The overload supported is like that: two variables can have the same name, with one local and the other public. The local one will be treated in priority.

 

Documentation>ETP-Basic reference>Presentation

     
    About ETP Contact Us