refactoring computation of parsing action tables