refactoring first table / removing pointer abuse in grammar/parsing
table