parser for automatic message-enum generation