The type of a callback that returns a message for a parser error code.
typedef MessageResolver = String Function(Msg msg);