Changed parser to reject top-level non-declarations