I am actually in the process of writing one in Lua to amuse my child! He's not yet a very strong reader nor typist, so to begin with the story will progress just by moving around, similar to Inside the Facility[1]. This is also to help keep the parser simple – I don't really want to write a parser, but I do need to implement the basics to get an engine in my child's native language.
In this case I chose Lua not for its suitability to the problem but because the computer my child has is a NetBSD machine with few things besides Lua installed on it.
Not even connected to the internet! Whicih is why I picked a BSD -- fairly complete on its own. We'll see how long I can keep it up. I hope to make "connecting to the internet" a temporary thing done for a specific purpose and then one disconnects.
[1]: https://ifdb.org/viewgame?id=stsdri5zh7a4i5my