Begin converting grammar to generic Element type
Make grammar return correct element