Simple program in python for applying non-recursive predictive parsing algorithm on any input to check its validity.