Compute first set of a grammar