NLP for compiler creation

Hey all I just finished going through the ai course and during the NLP topic it ocurred to me that a compiler could be written via NLP by creating a RNN that predicts asembly from the source code.

I was wondering if anybody has worked on something similar or if this seems feasable at least as an exercise