def test_predict(program, start_sym): from compiler.predict_generator import PredictGenerator p = PredictGenerator(program) p.generate(start_sym)