ncd: modules: parse: Implement parse_hex_number.