The HEX(t) function takes an arbitrary token text string, processes the text tokens, and then evaluates the result as a hex number.
HEX(0A) HEX(0x12AB)