Port parsing method.
All port symbols must be digital. Port length must be >0.
Resulting port value stores in input HostPort instance.
Parameters: lexer - class to use for parsing Parameters: hp - HostPort instance for accepting port value exception: ParseException - if an error occurs parsing exception: NumberFormatException - if any number format error exception: IllegalArgumentException - if any other format error