Object-Oriented Programming · Applied Intuition · Easy
Problem Implement a parser for message definitions written in the following format: Each line after the Message: header defines one field as a name/type pair. You can assume the input is well-formed and that field names are unique within a message. The parser must expose two methods: get_size(type_or_field_name): If type_or_field_name is a message type, return the sum of the sizes of all fields in that message. If type_or_field_name is a field name, return the size of that…
Checking your access…