| [news.eclipse.technology.ldt] Re: Beyond textual represenations... |
I agree that a typical AST parsed from source would underutilize the capabilities of EMF.
This is a great feature when modelling tool is used. It is much easier to understand and fix model in rational rose or other modelling tool where structure of model is obvious.From my use of EMF I see the major benefits as being:
1) Model Specification
2) Persistence/InterchangeReally great help during debugging, abitlity to dump program state to xml and analyze it later is just too useful.
3) NotificationIf AST is in EMF, the events might be used to maintain the mapping between AST and semantic model of the project.
4) Undo/RedoI think it will be underused. The text editors will likely rely on own text undo/redo and semantic model will track changes in text editors rather than use native redo/undo mechanisms.
5) Rich Metadata APIThis might be useful for configuration generic algorithms (for example scope rule checking) and creation of auxilary models that complement main AST model and used in additional code generators. For example see XSD mapping support in EMF.
What aspects of these (or other things that I've missed) do you see as particularly useful in the mainline case of the JDT/CDT/WTP supported languages?
Ability of sematic model to interact with AST model in interesting ways.
And, what languages and/or features do you think would be easier to support using EMF?
I think I answered it.
Constantine