I’ve had some interest in providing the source code for The Long Nap since it’s one of the few published works in Dialog and it’s pretty short which will make it easier to understand the whole thing. (thanks for the suggestion @jcompton).
I’m very new to Dialog, so I’m not going to suggest that this is the idiomatic way to write Dialog, and there may be way better ways to do things than I did them. But I thought it might be nice to get some example code out there for general consumption.
Check out the source code here. Feel free to ping me here or on Github if you have questions about it.