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.

13 lines
422B

  1. Number literals
  2. Traditional Forth often use HEX/DEC switches to go from decimal
  3. to hexadecimal parsing. Collapse OS parses literals in a way
  4. 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.