Making a programming game like scratch or code hero that teaches children how to program

How would I go about making a game that teaches young children how to program? How would I create a drag and drop that looks simple for the user, but the game converts that t code and runs that just like how scratch converts to java to run? Or could I let the user type in the code and have an in game compiler like code academy? Could I write my own programming language? Any other ideas that could get me started, or get me thinking better about this? Thanks! I would love any feedback!!

I’m also interested in this. Made any progress?