source code format

The source code is NOT free format

Only one statement to a line is allowed

statement seperators are not required or allowed (C uses the semicolon ';' character, XPE uses end of line)

'for', 'while', and 'if' statements have strict formats and cannot be split across multiple lines

i.e.

for statement must all be on one line

for   <expr>   while    <expr>   step    <expr>   do

subsequent statements that make up the body of the for loop must be placed on subsequent lines and the 'done' statement must be the last statement of the loop

for   <expr_1>   while    <expr_2>   step    <expr_3>   do

<statement_1>
<statement_2>
<statement_n>

done

similarly the while statement

while   <expr>   do

<statement_1>
<statement_2>
<statement_n>

done

the conditional 'if' statement is a little more complex since it has an
opional 'else' component and several 'if' statements may be combined
into one 'if' statement.

if   <expr>   then

<statement_1>
<statement_2>
<statement_N>

endif

or

if   <expr>   then

<statement_A1>
<statement_A2>
<statement_AN>

else
<statement_B1>
<statement_B2>
<statement_Bn>

endif

or

if   <expr1>   then

<statement_A1>
<statement_A2>
<statement_An>

elif   <expr2>   then
<statement_B1>
<statement_B2>
<statement_Bn>

endif

or

if   <expr1>   then

<statement_A1>
<statement_A2>
<statement_An>

elif   <expr2>   then
<statement_B1>
<statement_B2>
<statement_Bn>

elif   <expr3>   then
<statement_C1>
<statement_C2>
<statement_Cn>

endif
 

or

if   <expr1>   then

<statement_A1>
<statement_A2>
<statement_An>

elif   <expr2>   then
<statement_B1>
<statement_B2>
<statement_Bn>

else
<statement_C1>
<statement_C2>
<statement_Cn>

endif

or

if   <expr1>   then

<statement_A1>
<statement_A2>
<statement_An>

elif   <expr2>   then
<statement_B1>
<statement_B2>
<statement_Bn>

elif   <expr3>   then
<statement_C1>
<statement_C2>
<statement_Cn>

else
<statement_D1>
<statement_D2>
<statement_Dn>

endif