index > Visual Studio Team System - Domain-Specific Language Tools > Why is creating concrete syntax so hard?

Why is creating concrete syntax so hard?


Hi All!

After having looked a bit at other tools somewhat similar to DSL
DiegoMC

Diego

Which CTP have you been using. The V1 release, due very soon now, has a completed Dsl Designer which significantly improves the experience of defining a DSL (a single .dsl file to manage, no XML to edit, and tons of validation to catch errors and help you correct them).

As to your specific question, here are a few benefits:

1) Not all model elements are associated with diagram elements - some only appear in the explorer. You do this for elements that carry detail which it doesn't make sense to visualize.

2) Sometimes the same kind of drawing element may be used to visualize more than one kind of element, or an element may be visualized by different drawing elements in different contexts. Making mappings explicit makes this easier to define. The Dsl Designer (which itself is built using DSL Tools) has cases of this.

3) The domain model aspect of a dsl definition fulfills other purposes than supporting the drawing of diagrams. It governs the way in which models are serialized as xml, it defines the API used to access models from e.g. code generation templates, it defines the structure of the explorer. We have found that this can lead to conflicting demands on the structure of the domain model, and providing rich and flexible facilities to define the mapping to diagrams, to explorer nodes and to XML, makes it easier to accomodate all demands.

4) With (2) & (3), there is a danger that the simple and common cases then become harder to define. We've tried to mitigate this through the dsl designer, which makes it relatively easy to create, for example, simple shape mappings, but then still allows you to exploit the richness and flexibility providied. You can also write code to further customize the mappings.

Hope that clarifies.




Stuart
Stuart Kent MSFT
reply 2

You can use google to search for other answers

 

More Articles

TextDecorators in SwimLaneShapes
UML Sequence diagram in DSL?
how can i use the DiagramView to develop application in out of VS...
My view on views, Repositories, Multi-user acces etc.
No 'add new...' on Compartment
TextTemplatingFileGenerator now fails to compile T4 templates on ...
DSL Tools vs VSTS designers
Connectors connecting to connectors
Atrributes with particular properties
Dynamically generate and "install" DSL
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Where do I place text for a captionId?
Business Case
guidLogicalView
Custom Command improvements
How to control order of transformation s…
Collaborating on models?
ROM for developing a Use Case cartoon in…
Problem with the VS SDK March 2006
Change a connector's from and to endpoin…
How to expose domain model objects throu…
Migrating .diagram files to V1 (Septembe…
T4 Text Template Editor for VS2005
Tying domain classes to shape objects
Orchestration Features
reuse of model elements

Hot Articles

Question on using the domain model desig…
What one-shot recipes would you add to D…
updated DSL Customization Samples and Gu…
bidirectional connectors
use case template dropped?
How create an Emf file ? Extending notat…
2 problems with V1 release
Custom TargetEndStyle
t4 in a custom/stand alone tool
Package Load Failure with /NoVsip
Providing UITypeEditor in DSL
Has the hosting question been resolved?
Package Load Failure - June CTP
Are there any Community Projects using t…
DSL Tools November CTP and VS SDK Decemb…

Recommend Articles

bidirectional connectors
Announcing DSL Tools May 2005 CTP for Vi…
How to update PropertyGrid after changin…
Domain model designer toolbox items disa…
Many models, one template.
Additional DSL documentation?
November DSL toolkit: how to add command…
Problems with DSL Tools Version 1
How to make a Domain Relationship visibl…
Catch On Properties Change Event
connections restrictions between shapes …
cannot drag & drop shape from toolbox
How to intercept click on icon decorator
Diagram Size
Is DSL development a language driven dev…