Similar, but after a long week building a parser. I dreamt I was sitting under a tree, and falling asleep such that first my torso fell asleep, then my limbs and head, then my fingers/toes/ears etc. etc. Woke up laughing uncontrollably.
I practice a meditation technique where one "scans" the body from toe upwards to put the various parts to sleep sequentially. If I'm tired, I'm usually asleep by the time I get to the head.