Add line number to parse errors (fixes #59)