Switch to Ragel and support filters/reducers.