|QNames with dots in segments [message #1015992]
||Mon, 04 March 2013 14:17
| Jérôme Fouletier
Registered: September 2010
Our language uses some references found in a custom EMF resource (i.e. not managed by XText), and the names of some of these references may contain dots. They are exported as single-segment QNames by the customized IResourceDescription.|
These specific references only occur at a given point in the grammar, however, I cannot use this fact in a custom IQualifiedNameConverter since this class is not sensitive to grammar context. This means the strings entered in the DSL text will be split when searching the object descriptions provided by the global scope, and the scope search will fail.
Should I implement some form of escaping of the dot character in both the custom resource description and the qualified name provider of the grammar? I'm not sure of the latter, since the DSL has no grammar rule to define the objects I'm trying to import.
Any advice would be great.
Powered by FUDForum
. Page generated in 0.03268 seconds