write a c program for predictive parsing