construct lr1 goto and action table