def __iter__(self):
        if self.c in self._white_space:
            self._WHITE_SPACE()
        if self.c.isalpha():
            yield self._NAME()
        else:
            SyntaxError("cannot find command name")

        while self.c != EOF:
            if self.c in self._white_space:
                self._WHITE_SPACE()
            elif self.look_ahead('--'):
                yield self._LONG_OPTION()
            elif self.c == '-':
                yield self._OPTION()
            elif self.c < '\'"':
                yield self._STRING()
            else:
                # For example, eats locate *pat* and log -l5
                yield self._VALUE()
        raise StopIteration
dataset/ETHPy150Open guillermooo/Mercurial/shglib/parsing.py/CommandLexer.__iter__/operator `in` -> `<`