Converts a Grammar into LR(0) items