public List <(string, string)> ListaSimbolos() { if (Salida == null) { return(new()); } try { var simbolos = new List <(string, string)>(); foreach (var linea in Salida.Split('\n')) { if (linea.StartsWith("let")) { simbolos.Add((linea.Split(' ')[1].Replace(";", ""), "variable")); } else if (linea.StartsWith("function")) { simbolos.Add((string.Concat( linea.Split(' ')[1] .TakeWhile(c => c != '(')), "función")); } } return(simbolos); } catch (Exception) { return(new()); } }