Calculating first and follow sets in presence of keywords.