def accept(self, key): self._inp += utils.translate_char(key) return True
def one_char(in_): """ Any input (character) satisfies this parser. """ in_ = utils.translate_char(in_) return len(in_) == 1