Program to generate a recursive descent parser in c++ for any given grammar