Esempio n. 1
0
 def test_production_such_that_rhs_len(self):
     self.assertTrue(
         Production.such_that(rhs_len=2)(Production('X', ('x', 'y'))))
Esempio n. 2
0
 def test_production_such_that_rhs_is_suffix_of(self):
     self.assertTrue(
         Production.such_that(rhs_is_suffix_of=('a', 'x'))(Production(
             'X', ('x', ))))
Esempio n. 3
0
 def test_production_such_that_rhs(self):
     self.assertTrue(
         Production.such_that(rhs='x')(Production('X', ('x', ))))