vipsi - separators
Author: kio@little-bat.de
Keywords: vipsi shell script interpreter programming

# vipsi - shell and script language

## the built-in words

### separators

#### "," (comma)

Commas separate arguments in argument lists for procedures or they separates indexes in item selectors of multi-dimensional lists.

e.g.:

        log "a=", a;
        a = max( b,c );
        n = mylist[ i,j ].

#### ";" (semi colon)

";" is an instruction which does nothing. it may be used to separate statements if you like.

e.g.:

        var a = 0; log a; a++; log a;

#### "( … )" (round brackets)

    ( num_value [,…] )

Round brackets override operator priority in expressions or enclose argument list for procedures.

e.g.:

        log sin ( pi/3 );
        log 2*(3+4);

#### "[ … ]" (square brackets)

    text_value|list_value[ [num_value] [to] [num_value] [,…] ]

Square brackets enclose subrange or item selector for texts or lists. indexes start with 1.

e.g.:

        log "abcde"[2 to 3];
        log {1,2,3}[1];

#### ""{ … }" (curly brackets)

Curly brackets enclose list literals, procedure bodies, or blocks of instructions with private variable scope.

e.g.:

        var a = { 1, 2, 3 }
        proc foo() { put "hello!",nl }
        { var foo=0 }