Ints

From Adam Colton
Revision as of 19:39, 17 September 2019 by Adamcolton (talk | contribs) (Created page with "There are two basic varieties int and uint. Each have three variant; system, big and sized. * int<8> * int<16> * int (this is a big int) * int<0> for system... I'm not sure * ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

There are two basic varieties int and uint. Each have three variant; system, big and sized.

  • int<8>
  • int<16>
  • int (this is a big int)
  • int<0> for system... I'm not sure
  • int<rt.Size> kind of verbose

Definition

Pretty Standard

  • Decimal: [+\-]?\d+
  • Hex: [+\-]?0x[0-9a-fA-F]+
  • Octal: [+\-]?0c[0-9a-fA-F]+
  • binary: [+\-]?0c[0-1]+
  • Y64: replaces + with . and / with _ making it easier to parse.

Methods

  • String() string
  • a whole bunch of operators (+-*/^%!&|<> ==)

Symbol Notes

I may use ; as the standard separator rather than , which would leave it free to use in numbers.