I am trying to write a C module to analyze the Python code in a lisrically manner. How can I do this?
Full, detailed explanation for lexical analysis of Python code.
As you can see, you need to cover many cases. One help is that you will always be able to check with the most easily if the written analyzer is correct for any python piece of your python, then it has to be reverted to see what the Python-applicable module in Python's standard library is.
As you can see in tokens, it has several hundred lines of Python so that you can easily extrapple through thousands of lines - surely
Of course, as a starting point, you can fork yourself python - which is less surprisingly less than 2,000 lines (what it is!), But good part Because it is trusting some other bits and pieces of Python runtime (if your implementation should be lonely then you will need to reproduce them.)
If you are a very experienced programmer The composition of Python's codebase With the understanding, and can sprint only on it for all your waking hours, you can be it make it in a week or so, in normal circumstances, I would say that work A little over a month would be a bit optimistic. What's your timeframe?
Comments
Post a Comment