Return the element that tkn represents

def reference(self, tkn: str):
        """ Return the element that tkn represents"""
        return self.grammarelts[tkn] if tkn in self.grammarelts else UndefinedElement(tkn)