Esempio n. 1
0
        //-----< display Using Table >------------------------------------

        public static void showUsingTable()
        {
            // Console.Write("------------------------------------------");
            Console.Write("\n\nUsing Table");
            foreach (var Usingtable in Typetab.getUsingTable())
            {
                Console.Write("\n     {0}", Usingtable.Key);

                foreach (var type in Usingtable.Value)
                {
                    Console.Write("\n     {0}", type);
                }
            }
        }
Esempio n. 2
0
        // --------< display TypeTable >----------------------------------
        public static void showTypeTable()
        {
            //Console.Write("------------------------------------------------");
            Console.Write("\n\nTypeTable");
            foreach (var typetable in Typetab.getTable())
            {
                Console.Write("\n {0}", typetable.Key);

                foreach (var type in typetable.Value)
                {
                    Console.Write("\n       {0}, {1}", type.file, type.nameSpace);
                }
            }
        }
        static void Main(string[] args)
        {
            Console.Write("\n TYPE TABLE DEMONSTRATION ");
            Console.Write("\n ************************************\n");
            // List<string> ListOfFiles = new List<string>();
            string FirstFile = "../../../Parser/Test.txt";
            //string SecondFile = "../../../Parser/Test2.txt";
            string  path1     = System.IO.Path.GetFullPath(FirstFile);
            string  nameSpace = "SemiExpression";
            string  typename  = "semi";
            Typetab typetable = new Typetab();

            typetable.add(typename, nameSpace, FirstFile);
            typetable.addTable(typename, path1);
            Console.Write("\n\n");
        }