I am learning MPS and would like to use it in my project.
I want to use MPS to create a IDL to describe protocol msgs. The created IDL would be very like google protobuf, e.g. define msgs, msg fields could be primitive types or existing msgs. Eventually I will generate c++ and python code.
The question I have right now is that, there are some existing XML files, each of them has thousands of lines to define one protocol. How could I import this kind of XML to MPS? Also the vendors keep releasing new version of XML files, I need to figure out a easy way to import it into MPS.
I could write python code to convert XML to the IDL file(plan text) if no way to import XML directly, but how to import plain text IDL file into MPS as a new model?