LR Parser refucktoring