Implement route parser.