Implement parsing fancy enums.

(The production is not ready for landing, I hate writing these)