javamps

How can I Import Java Code into MPS-BaseLang?


I'd like to import existing Java code (say, an Eclipse project) into MPS. The code should be parsed into MPS' BaseLang, so that I can analyze and transform it.

How can I do that?


Solution

  • Right-click on a model and choose "Get Model Contents From Source". This should run the MPS-to-Java importer. Untested, though.