Not sure what you have there, but the center photo looks like if you hold a piece of rail upside down and push it into the slot, the upper pieces will clamp down and hold it into position -- possibly a guide for sawing a piece of rail or filing out a portion of a closure rail for a hand-made turnout, or filing the point rail while holding it in a vise.
Get the Garden Railways newsletter delivered to your inbox twice a month