AST to XML in MPS Follow
Hello,
I want to translate some language (like Pascal or C) into XML. Something like: <for from="0" to="10"><if ...></for>... I see some approaches for this, but they are language-specific. Is MPS general solution of this problem. And how can I do this using MPS?
I want to translate some language (like Pascal or C) into XML. Something like: <for from="0" to="10"><if ...></for>... I see some approaches for this, but they are language-specific. Is MPS general solution of this problem. And how can I do this using MPS?
Please sign in to leave a comment.
I think, the most general solution is the model format:
Otherwise, sure it depends on the current language.
Are you going to serialize the transformed xml back to the C code? If so, why don't you use the MPS' smodel language to modify the C language model without those intermediate transformations to xml and back?
Regards,
Mihail