def setUpClass(cls): #raise unittest.SkipTest("Bind doesn't work right now") cls.parser = h.indirect() a = h.ch("a") cls.parser.bind(h.choice(h.sequence(a, cls.parser), h.epsilon_p()))
def setUpClass(cls): #raise unittest.SkipTest(b"Bind doesn't work right now") cls.parser = h.indirect() a = h.ch(b"a") cls.parser.bind(h.choice(h.sequence(a, cls.parser), h.epsilon_p()))
def setUpClass(cls): cls.parser = h.sequence(h.ch("a"), h.epsilon_p())
def setUpClass(cls): cls.parser = h.sequence(h.ch(b"a"), h.epsilon_p())