예제 #1
0
 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()))
예제 #2
0
 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()))
예제 #3
0
 def setUpClass(cls):
     cls.parser = h.sequence(h.ch("a"), h.epsilon_p())
예제 #4
0
 def setUpClass(cls):
     cls.parser = h.sequence(h.ch(b"a"), h.epsilon_p())