pTAL Conversion Guide

Compiler Operation
pTAL Conversion Guide527302-002
19-17
For pTAL and TAL
NODO_TNS_SYNTAX
suppresses warnings for each occurrence of a construct that is valid in pTAL but
not in TAL.
INT(32) bit extract source INT(32) i;
...
i.<0:15>
INT(32) bit deposit target INT(32) i;
i.<0:15> := ...
LAND, LOR, or XOR operator with
INT(32) operands
INT(32) i, j;
...
i LAND j
INT(32) argument to the $COMP
routine
INT(32) i;
...
$COMP(i)
Unsigned addition or subtraction
operator ('+', '-') with INT(32) operands
INT(32) i, j;
...
i '+' j
Unsigned multiplication, division, or
remainder operator ('*', '/', '\') with
INT(32) operands
INT(32) i, j;
...
i '*' j
Unsigned comparison operator ('<',
'<=', '=', '<>', '>=', '>') with INT(32)
operands
INT(32) i, j;
...
i '<' j
INT(32) index in a FOR statement INT(32) i;
FOR i := 1D to 10D DO ...
INT(32) index in an unlabeled CASE
statement
INT(32) i;
CASE i OF ...
BEGIN
...
END;
INT(32) selector in a labeled CASE
statement
INT(32) i;
CASE i OF ...
BEGIN
1D -> ...
END;
INT(32) variable with an implied not-
equal-zero operator in the conditional
expression of an IF statement
INT(32) i;
IF ( i ) THEN ...
! Implies "IF ( i <> 0D) THEN ..."
.EXT scan variable in a SCAN or
RSCAN statement
STRING .EXT s;
SCAN s UNTIL " ";
Construct Example