Wednesday, March 28, 2012

Xcore: Ecore Meets Xtext

Xcore is a DSL for describing EMF models, and is an alternative to creating models in ECore.

Why Xcore?  ECore's graphical and tree-based editor can be difficult to use.  It requires switching between the editors and code, and a separate code generation step.  Furthermore, the graph-based approach is cumbersome when a model is more complicated and contains many relationships.

What does Xcore do?

  • Text-based DSL for Ecore
  • Cool editor (Xtext)
    • Auto-completion
    • Templates
    • etc.
  • When saved, the code is generated, resulting in a more streamlined workflow
  • Custom behaviours can be specified in-place

No comments:

Post a Comment