Initial import of parsing code.