parser: first impl and first tests