Added logic to compute the follow-set for each non-terminal symbol.