https://bugs.kde.org/show_bug.cgi?id=438206
--- Comment #13 from Sven Brauch <m...@svenbrauch.de> --- Hi, I've drafted a possible way forward in the "python310" branch in the kdev-python repo. The AST is written to an XML stream from a tiny Python program and read using QXmlStreamReader in C++. So far, only Module, Assignment, Name and Constant AST nodes can be deserialized, so we can basically parse programs of the form "a = 3" and nothing else ;) But the whole structure is there, most of what's left is filling in all the 63 or so missing NodeReader<> template specializations for all the AST nodes, see https://invent.kde.org/kdevelop/kdev-python/-/blob/python310/parser/astfromxml.cpp#L164 In addition, we need to deal with 1. error reporting (parse errors, plus invalid XML issues), and 2. running the ast-to-xml Python code in-process, that should make it reasonably fast. But I'm fairly certain that the most difficult step is done. -- You are receiving this mail because: You are watching all bug changes.