parser stage 1