pTAL Conversion Guide

Lexical Elements
pTAL Conversion Guide527302-002
3-2
One-Character Unsigned Binary Operators
One-Character Unsigned Binary Operators
TAL
A one-character signed binary operator can have one embedded space character
between the operator character and the closing quotation mark. For example:
a := a ‘+ ‘ 1; ! Space allowed between + and final ‘
pTAL
A one-character signed binary operator cannot have anything between the operator
character and the closing quotation mark.
For example, you must change the TAL statement:
a := a '+ ' 1;
to:
a := a '+' 1;
Bit-Extract Operators
TAL
A bit-extract operator can be immediately followed by any binary operator. For
example:
INT i;
i := i.<8>= 3; ! Space not required between <8> and =
i := i.<0:7>>> 8; ! Space not required between <0:7> and >>
pTAL
A bit-extract operator must be separated by at least one space character from these
binary operators:
For example:
INT i;
i := i.<8> = 3; ! Space required between <8> and =
i := i.<0:7> >> 8; ! Space required between <0:7> and >>
Operator Meaning
> Unsigned greater than
= Unsigned equal
>= Unsigned greater than or equal
>> Unsigned right shift