parser: Better declaration parsing.