Mirror of CollapseOS
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
424B

  1. Number literals
  2. Traditional Forth often uses HEX/DEC switches to go from deci-
  3. mal to hexadecimal parsing. Collapse OS parses literals in a
  4. way that is closer to C.
  5. Straight numbers are decimals, numbers starting with "0x"
  6. are hexadecimals (example "0x12ef"), "0b" prefixes indicate
  7. binary (example "0b1010"), char literals are single characters
  8. surrounded by ' (example 'X'). Char literals can't be used for
  9. whitespaces.