示例#1
0
        public static void FindClasses()
        {
            string[]         classSignature = { "class", "{" };
            ITokenCollection semiExp        = Factory.Create();

            //string source = "../../../../Toker/Toker.cs";
            string source = "../../../SemiExpression.cs";

            if (!semiExp.Open(source))
            {
                Console.Write("\n Cant't open");
                return;
            }

            while (!semiExp.IsDone())
            {
                semiExp.GetTokens();
                if (semiExp.HasSequence(classSignature))
                {
                    semiExp.Show();
                }
            }
            Console.Write("\n-------------------------------------------------------------------\n");
        }