It is possible you know, the ancient chinese had a lever-activated, magazine-fed crossbow.
It would be bulky as heck, but it could be done.