parse declarations of global variables