Hello,
Ouch, sorry that has happened! While those nice green mesh hammocks are nice, they un fortunately contribute to many injuries to beardies' toes & fingers.
I would remove the hammock though & find one that is a solid material which eliminates their claws getting caught.
For now, I would keep the area clean & use some antibiotic ointment on the toe. You could attempt to gently tape the toe to the next one. Place the sticky side up & use a thin piece of gauge so there isn't any stickiness to it. Or you could also try using a couple of short pieces of toothpick secured by gauge/tape on top & bottom of the finger to support it.
Let us know how he is doing.
Tracie