Numbers in quex are specified in a way similar to what is common practice in many programming languages such as C, Python, Java, etc. – with some convenient extensions. Number formats are as follows:
Normal decimal integers do not start with ‘0’ and have none of the prefixes below.
Hexadecimal numbers need to be preceeded by ‘0x’. The dots inside the hexadecimal numbers are meaningless for the parser, but may facilitate the reading for the human reader.
Octal numbers are preceeded by ‘0o’.
Binary numbers are preceeded by ‘0b’. Again, redundant dots may facilitate the human interpretation of the specified number.
Roman numbers must be preceeded by a ‘0r’ prefix.