ast and parser take stmt list