fileName = input("Dati numele de fisier: ") if not path.exists(fileName): print("Fisier inexistent") continue elif option == "2": for line in reader.read(fileName): analyzer.analyze(line) atoms = analyzer.getAtoms() for atom, _ in atoms: print(atom) elif option == "3": for line in reader.read(fileName): analyzer.analyze(line) atoms = analyzer.getAtoms() fipGenerator = FIPGenerator(lexic) tsIDList, tsCONSTList, programAtoms = fipGenerator.generateFIP(atoms) printer.printConsoleStyle(programAtoms, tsIDList, tsCONSTList) elif option == "4": break else: print("Optiune invalida") except Exception as e: print("ERROR: " + str(e))