added detail for direct left and right recursion for generation phase.