Builds a factory function that produces new messages
based on some arbitrary input type. This allows
to pre-capture some context for the message that
does not relate to the parser context.
Builds a factory function that produces new messages
based on some arbitrary input type. This allows
to pre-capture some context for the message that
does not relate to the parser context.