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