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