Example #1
0
        static void Main(string[] args)
        {
            Console.ForegroundColor = ConsoleColor.White;
            Lenguaje l = new Lenguaje();

            /*while (!l.archivo.EndOfStream)
             * {
             *  Console.WriteLine("Contenido: " + l.GetContenido());
             *  Console.WriteLine("Clasificación: " + l.CtoStr(l.GetClasificacion()));
             *  l.NextToken();
             * }*/
            l.ProgramaC();
        }
Example #2
0
 static void Main(string[] args)
 {
     try
     {
         using (Lenguaje l = new Lenguaje("C:\\Archivos\\Suma.cpp"))
         {
             /*while (!l.FinArchivo())
              * {
              *  l.NextToken();
              * }*/
             l.Programa();
         }
     }
     catch (Exception e)
     {
         Console.WriteLine(e.Message);
     }
     Console.ReadKey();
 }