Reduced the grammar to LL1