parse declaration file