code: def undefined_entries(self) -> Set[str]:
          
          return as_set([[d for d in self.dependencies(k) if d not in self.grammarelts]
                         for k in self.grammarelts.keys()])
docs: Return the set of tokens that are referenced but not defined.