BlitzMax/Language/Literals

Integer literals may be in either decimal, hexadecimal or binary format. To specify a hexadecimal literal, prepend it with the @$ character. To specify a binary literal, prepend it with the % character. Here are some examples of integer literals:

A string literal is a sequence of characters enclosed in quotation marks. For example:

"Hello World"
"" 'empty string

String literals can also contain escape sequences. An escape sequence is a special sequence of characters used to represent another character. This is useful for including 'untypable' characters and quotation marks in strings. Escape sequences always start with the ~ character. The following escape sequences are supported: