Finished _parse_input().

Main parsing code is done and tested.