Feb-28-2024, 07:09 PM
(Feb-28-2024, 06:59 PM)Pavel1982 Wrote: I need to do it myself, so I need the algorithm.I would use the Python parsing tools that are available in the standard library, namely the
tokenize()
function and the ast
module.
« We can solve any problem by introducing an extra level of indirection »