next up previous contents index
Next: Operators Up: Expressions Previous: Variables

TSF types

The following documented types are used in the TSF language:

  $\blacktriangleright$    integer
- The integer values have an infinite precision.
  $\blacktriangleright$    real
- The real values are coded by a single precision variable.
  $\blacktriangleright$    string
- The constant strings are bounded by the character ".
  $\blacktriangleright$    boolean
- The predefined constants TRUE   and FALSE   are used to create boolean values.
  $\blacktriangleright$    tree
- Fortran expressions and statements are coded in a AST structure.
  $\blacktriangleright$    vector
- A vector is a sequence of values of any types. Each element is referenced within [] by an integer index.
  $\blacktriangleright$    hash
- A hash table is a sequence of values of any types. Each element is referenced within by an unique key. We recommand to use simple types for keys (integer, real, string or boolean).

 
Most of the predefined variables as well as the pattern variables (except $cforlib, $csymtab) are of type tree. TSF uses many other undocumented types (lists, tables, symbols, ...). They can be exploited by internal functions. For instance, the type of the predefined variable $symtab is undocumented.


next up previous contents index
Next: Operators Up: Expressions Previous: Variables
Yann Mevel
1999-04-30