Grammar in XML and attribute completion [message #719868] |
Mon, 29 August 2011 09:13 |
Roded Bahat Messages: 152 Registered: August 2011 |
Senior Member |
|
|
Hello all,
I'm quite new to EMF and xText besides the reading and experimenting done for the last few days. I figured that before starting implementing anything, It would be better to ask the collective for some advice:
We use propriety XML files for configuration and as DSLs (more on that in a bit). My final goal is to allow visually editing of those XML files via an Eclipse plugin and not have the users fuddle about with the XML itself.
This would've been easy with simple XMLs but I have the following aspirations:
1) The configuration files rely on other XML files for some definitions for which I'd like to allow auto-completion. (For example, if a base XML has an <output name="x"> tag, I'd like to be able to auto-complete the name attribute of an <input> tag in a different XML to that of the same name defined in the base XML).
2) We use XMLs as DSLs. For example:
<condition>
<conidionStatement>!myDslFlag</conditionStatement>
<statement>myDslVariable = myDslMethod(arg)</statement>
</condition>
I'd like to be able to auto-complete & syntax color our grammar inside XML those tags.
I'd really appreciate any inputs or points in the right direction regarding how to accomplish the above.
Thanks,
Roded
[Updated on: Mon, 29 August 2011 09:23] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03634 seconds