vipsi - syntax cave-ats
Author: kio@little-bat.de
Keywords: vipsi shell script interpreter programming

# vipsi - shell and script language

## syntax cave-ats

    sin 2*pi	=   sin(2) * pi

work-around: use brackets: sin(2*pi).

    { 1, 2, 3 }

if a statement starts with '{' this is not recognized as a list, but as start of a local context instead. after all, it is very unlikely for a normal program that a statement starts with a list literal.

work-around: use brackets: ({1,2,3}).

    -123
    +123

if a statement starts with '-' or '+' it is likely that it is not recognized as a number sign but interpreted as operator minus or plus linking it to the previous expression. after all, it is very unlikely for a normal program that a statement starts with a number literal.

work-around: terminate preceding instruction with ';'.

    %0101

if a statement starts with '%' it is likely that it is not recognized as a binary number literal but interpreted as operator remainder linking it to the previous expression. after all, it is very unlikely for a normal program that a statement starts with a number literal.

work-around: terminate preceding instruction with ';'.