A sample URI parser I wrote for an interview.