construct a cfg for the regular expression

visit shbcf.ru