Hello guys. As a programmer of Python who wants to move to C/C++ I'd like to understand how Python code parser works . Can someone explain? Thanks
Hello guys. As a programmer of Python who wants to move to C/C++ I'd like to understand how Python code parser works . Can someone explain? Thanks
Why is understanding how a Python code parser works necessary in order to move from Python to C/C++?
What happens when you Google "how python interpreter works", "how interpreter works" or "how compiler works"? Those seemed to give lots of good information, I suggest you read through several links and see what you can understand from them. If you're still confused or need help then come on back and ask some more specific questions. There's lots of existing, well-written information with diagrams and whatnot, which is far more effective than asking a forum for an impromptu lesson.
Note, you should clarify if it's just the parser you're interested in, or the whole interpreter, etc. Familiarizing yourself with the vocabulary well enough to ask an accurate question is very helpful.
Yeah, I will take a look . I didn't think about google for some reason....
And I am interested ONLY in parser. After reading some stuff in Wikipedia, I understand how compilers and interpreters work.
I thought code is parsed by regexes, but after taking a quick look thought the source code, I found out that it uses no regexes (or at least I didn't noticed any), and I got interested how the language is parsed
Note, if you're concerned specifically about Python and how it chooses to do these things, rather than the general idea behind parsing, consider downloading the Python interpreter source code as well.