Parser for paths