@cambertian hmm
when i was 13 i made an interpreter language for making text adventures, i don't know if that's the same thing you want
literally the way it worked was reading text files and parsing commands very simply, and the commands were thought out with each building block i needed in mind (rooms, inventory, etc)
it was a mess only i understood, made entirely in quickbasic, and i think it still exists somewhere