Can we use NLP to understand/parse/compile programming code? I wonder if we can use Natural Language Processing (NLP) to process programming code:
Given a piece of code, can we

Translate it to human language to understand what it does? The input could be a function definition（normally lack of documentation) in Python and the output could be the documentation for that function.
Compile or translate it to another programming language? Compile Python code to C or machine code, or translate C code to Python code?
Yes, and that is the ambition of the Decoder project (H2020 funded in Europe). Analyzing with NLP techniques the comments in e.g. C or C++ source code (of open source projects, and perhaps their git logs).
I even happen to be on the photo.
My dream is to try similar things, in a few years, in RefPerSys. You could join that project, BTW.