0

How to text gen from language A via language B?

I'm attempting to write a text editor around a few concepts. I want to generate HTML from it, so I defined an additional language, 'Xml', which contains two basic entities – Tag and Attribute.

The idea is that I use a concept from my original language (e.g., Paragraph), I transform it into the Xml language's Tag element, and then use the text gen from that to output the resulting HTML.

My question: how do I actually do it? I have added the Xml language to the original language's imports, but I see no ability to actually use this language in the textGen portion of the language. Am I missing something?

3 comments

Please sign in to leave a comment.