Contents | Prev | Next

"5.3 Allow binary/hexadecimal constants"

When this extension is enabled (the default), the Irie Pascal compiler will recognize binary and hexadecimal constants.

Binary Constants

Binary constants begin with %, and are followed by one or more binary (0 or 1) digits.

The following are examples of valid binary constants

   %0   %1      %01110101010101010111101

The following are not valid binary constants

   %2    %      %151       %g

Hexadecimal Constants

Hexadecimal constants begin with $, and are followed by one or more hexadecimal (one of 0123456789ABCDEF) digits.

The following are examples of valid hexadecimal constants

   $9   $A123      $ffff

The following is not a valid hexadecimal constant

   $abgd

since g is not a hexadecimal digit.

Contents | Prev | Next