Parse data declarations and module head pragmas.