[SOLVED] Transformation of Abstract Syntax Tree [message #642005] |
Mon, 29 November 2010 14:12 |
Florian Gessner Messages: 20 Registered: November 2010 |
Junior Member |
|
|
Hi all,
is it possible to manipulate the abstract syntax tree programatically? If yes, is there a default approach how to do this?
I need this to do some defaulting which depends on input of the user.
If I have understood the user guide right, XTEND can only be used for M2M transformation during parser generation but not during runtime.
Thank and Best Regards
Florian
[Updated on: Wed, 01 December 2010 07:02] Report message to a moderator
|
|
|
|
Re: Transformation of Abstract Syntax Tree [message #642086 is a reply to message #642005] |
Mon, 29 November 2010 18:39 |
Florian Gessner Messages: 20 Registered: November 2010 |
Junior Member |
|
|
Hi Sebastian,
thanks for your fast reply.
The example described in the blog uses the IDocumentEditor to manipulate the data. I do not want to implement this in the UI layer but in the backend.
I think EMF should would independent from this, but for me it is not clear how I can integrate this into the backend. I think it would be a bit strange if I would enrich the model by some logic during validation or linking. Or is this how it works?
The best solution would be to have a post-processing step after linking.
Thanks and best regards
Florian
[Updated on: Tue, 30 November 2010 09:27] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.02702 seconds