I defined a small DSL, which is mainly written as various types of XML files in combination with some property files. This works very well, but I want to create an Eclipse editor to make editing these files easier for beginners (I already have a working parser).
The main XML file can reference some elements from .properties files and vice versa. The main xml file can also reference other XML files. Some parameters should be available only in the main XML file based on the contents of the .properties files and based on some osgi plugins that can be added to a DSL project (the syntax is dynamic depending on the context). The language structure is fixed, but the parameters available in each attribute or the choice of attributes themselves vary depending on the metadata contained in the plugin's .jar files.
Questions:
Does XText support dynamic syntax (validation changes depending on external factors)?
Does XText support XML / .properties files?
Thank you for your help in advance.
source
share