Importing generated text back
Hi.
For example even if I built a simple editor for my favourite language like java, ruby or actionscript which generated valid program in this language, can somehow import back into mps source code if it was edited by someone else for example?
Please sign in to leave a comment.
Hello, Valentin,
There's no such ability now and we don't have plans of implementing it. However, you can create a parser which will parse text into MPS model.
Regards,
Konstantin
Hi Konstantin,
does there exist any example on writing such a parser?
Regards,
Mirko
Hello, Mirko,
Kind of. If you download our sources, you can open ASMConverter class. This class converts .class files to their MPS baseLanguage's counterparts.
Regards,
Konstantin