reworks parser grammar to separate lists from grouped statements