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