Computing FIRST and FOLLOW