added register token and support for decimal and hexadecimal numerals