Generating node models from input files
I would like to generate node models for my DSL based on data from some input files (e.g. an XML file). This would require writing a program that parses the input file, and then creates instances of the concepts from my language based on the input data, to produce a node model. Is this possible with MPS? If so, then how would i achieve this? Any links to relevant tutorials or a push in the right direction would be highly appreciated!
Please sign in to leave a comment.
I think you're looking to write an importer. I have written a series of short articles on this topic, you can find them on https://specificlanguages.com/posts/ by searching for "importer" on the page.
Yes that is exactly what I'm looking for. Thank you Sergej!