public void cargarArchivo(string ruta) { //Lexico_tk l = new Lexico_tk(); Lexico_tk.getRuta_alfabeto(ruta); GenerarTabla.generarTablaAlfabeto(tbl_tabla, Lexico_tk.listAlfabeto); }
/* string rutaAFD = @"C:\Users\WGPROOT\Desktop\xml\automata_wcl.xml"; * string rutaAlfabeto = @"C:\Users\WGPROOT\Desktop\xml\Alfabeto.xml"; * string ruta_error = @"C:\Users\WGPROOT\Desktop\xml\Error.xml";*/ //string rutaAFD = CargarData("automata_wcl.xml"); public Logo() { InitializeComponent(); timer1.Enabled = true; //Console.WriteLine("---> " + @CargarRuta("\\..\\..\\automata_wcl.xml")); // --- LEXICO ---- Lexico_tk.getRuta_afd(@CargarRuta("automata_wcl.xml")); Lexico_tk.getRuta_alfabeto(@CargarRuta("Alfabeto.xml")); Lexico_tk.inicializarError(@CargarRuta("Error.xml")); // --- SINTACTICO --- Sintactico_srl.inicializarCargarSLR("Gramatica_SLR2.xml"); Console.WriteLine("FICHEROS CARGADOS"); }