parser: parse external declarations