Next: Offsets, Up: The Poke Language [Contents][Index]

Most of the values manipulated in Poke programs are whole numbers,
also typically known as *integers* in computing parlance. This is
because integers are pervasive in binary formats, often featuring
unusual characteristics in terms of size and/or alignment. Single
bits denoting flags or packed small integers are good examples of
this. In order to ease the manipulation of such entities, and unlike
most programming languages, Poke provides integer types of any number
of bits and a rich set of accompanying operators.

• Integer Literals: | Writing integers in different bases. | |

• Characters: | Another way to write small integers. | |

• Booleans: | Integers denoting truth values. | |

• Integer Types: | int<N> and uint<N>. | |

• Casting Integers: | Converting integers. | |

• Relational Operators: | Comparing integers. | |

• Arithmetic Operators: | Operating with integers. | |

• Bitwise Operators: | Getting and setting integer bits. | |

• Boolean Operators: | Equality and inequality. | |

• Integer Attributes: | Accessing properties of integer values. |