}                                   //private constructor

        public static GrammarToCNFGenerator GetInstance()
        {
            if (singleton == null)
            {
                singleton = new GrammarToCNFGenerator();
            }
            return(singleton);
        }
 public override Generator GetGenerator()
 {
     return(GrammarToCNFGenerator.GetInstance());
 }