dsl-tools

DSL Tools: Create a new Diagram in custom code

Hello, I am using DSL Tools for Visual Studio 2005. I have a DSL where at a certain point i would like to create a new Diagram using custom code. So far, i was able to create a new Diagram by overwriting the current, already opened diagram. Code follows: FEGeneratorDiagram diag = new FEGeneratorDiagram(ThisElem.Store); diag.Asso...

C# Create a hidden transaction

Hello, I am using C# and DSL Tools for VS2005. I need to create Transactions to change some data but i want them to be hidden from the user, that means, to not show in the UNDO list in VS2005. I tried by disabling the UndoManager store.UndoManager.UndoState = UndoState.Disabled; But by disabling it all existing previous actions in...

Writing a compiler for a DSL in python

I am writing a game in python and have decided to create a DSL for the map data files. I know I could write my own parser with regex, but I am wondering if there are existing python tools which can do this more easily, like re2c which is used in the PHP engine. Some extra info: Yes, I do need a DSL, and even if I didn't I still want t...

DSL Tools: How to create the DLL as weak-named

Hello, I have a DSL Tools solution. I need to add a weak-named reference to this project. Because the DSL Tools project DLL is strong-named i cannot used the weak-named DLL. I cannot make the DLL strong-named because i cannot recompile it. I tried to make my DSL Tools project DLL weak-named by going to the Dsl and DslPackage project ...

What are the major tools for DSL construction?

I know there's support for design and creation of domain-specific languages in VS 2008, then there's the Meta Programming System from Jetbrains. Are there any other major tools in this arena? What are the most used tools for DSL construction? ...

Microsoft Visual Studio SDK DSL Tools - Any serious takers?

We are considering Microsoft DSL toolkit for creating some abstract designers. I already did some POCs, but would like to get some opinions on the same. Any one here to share their experiences working with Microsoft DSL Toolkit and T4? Also, any pointers to open source DSL projects will help - Eg. Microsoft Service Factory modeling edit...

Alternative to obsolete UndoState.DisabledNoFlush

A partner of mine asked this, Hello, I am using C# and DSL Tools for VS2005. I need to create Transactions to change some data but i want them to be hidden from the user, that means, to not show in the UNDO list in VS2005. store.UndoManager.UndoState = UndoState.Disabled; this solved the problem but is documente...

Why are parsing tools needed for DSLs?

Couldn't a DSL be as simple as an API and therefore not need a parser? Or am I misunderstanding what a domain specific language really is? I thought it referred to any organized set of rules for solving a particular domain problem. An API would seem to fit that definition, right? ...

DSLs and Form Creation

I'm currently working on the requirements/scoping of a project now that could involve: 1) 5 to 6 forms 2) with 250 to 300 questions/fields accross the forms 3) 2 to 3 workflows Are there any .NET or cross-platform tools that will allow me to put the responsibility of developing the forms back onto a non-technical Business Analyst? Are...

Tools to build a DSL in .NET

I'm getting teased more and more into developing DSLs. I've developed a tiny one with F# using fslex and fsyacc but the error messages are inaccurate (I also can't find a way to generate better ones, there seems to be little documentation on how to handle error cases) and the fact that they won't parse UNICODE strings adequately is not a...

How to nest shapes in a DSL Tools diagram?

I have a DSL containing two main domain classes: Area and Entity. Areas are represented visually by a GeometryShape, whereas entities are represented by a CompartmentShape. Entities can be embedded in an Area, or not (in this case they are embedded in the root object, which is a kind of Area). There may be relationships between entities,...

DSL: from DSL rules into C# expressions

Hi, the question is maybe composite, let me expand it: does it exists a designer (stub/framework/meta-designer) to create AND/OR based rules based on .NET object public bool properties? Saved as any DSL/Boo/... output. is it possible to compile the DSL output into C# expressions? Our main problem is the gap between the documentation...

How to Dynamically Customize the Property Window

The on-line help for the Microsoft Visual Studio Domain-Specific Language (DSL) tools explains how to prevent domain properties from appearing in the properties window: You can prevent domain properties from appearing in the Properties window by setting the Is Browsable property to False. The Is Property Browsable property is...

Visual Studio DSL Tools and Server Explorer

Is it possible to enable users to drag and drop a Table from the Visual Studio Server Explorer onto my own DSL Diagram? I can drop custom Domain Classes I have created but want to make use of the build in funcationality. I am working in Visual Studio 2010. ...

What is the difference between "DSL Tools" and "Oslo"?

Hi, I've just started playing with domain-specific tools development, and I'm playing with Visual Studio SDK DSL Tools. However, I heard that Microsoft have another initiative into domain-specific development called "Oslo". My impression is that DSL Tools is focused on graphical domain-specific languages, whereas Oslo is focused on tex...

How to fix blurred Icon Decorator on DSL Tools?

I faced this problem and after an extensive research I found its root cause and a workaround that can be useful for other people. The icon decorator becomes "blurred" because its positioning on the shape and the conversion from pixels to inches. Usually the drawing surface of the Domain Specific Language has a resolution of 96dpi and t...

DSL Add Root Element to Serialization

I am looking for help to achieve the following The Diagram represents a car, users can add engine and colour when I view the XML it looks like this: <Car> <Engine>BigEngine</Engine> <Colour>Pink</Colour> </Car> What I would like to do is to wrap the car inside 'vehicle', i.e <Vehicle> <Car> <Engine>BigEngine</Engine> ...

Help with learning to use Irony for .net

I am trying to get up to speed with Irony. I keep seeing some terminology that I don't yet understand: terminals, non-terminals, token, state machine, Associativity, Abstract Syntax Tree. Can someone please give some meaning to some of these terms? I keep reading great things about Irony, so any help you can give with learning how to us...

Domain Property as Element and Hiding Default Value Properties

Hi, I have two questions How do I achieve the following, I have a domain class called 'Property' - Property has two properties 'Type' and 'Value' it is currently being serialized as the following: <Property Type="TestType"><Value>TestValue<Value><Property> I need it to format as <Property Type="TestType">TestValue</Property> ...

DSL Custom Constructor - only calling when created not loading

Info: VS2010, DSL Toolkit, C# I have a custom constructor on one of my domain classes which adds some child elements. I have an issue as I only want this to run when the domain class element is created , not every time the diagram is opened (which calls the construtors) public Entity(Partition partition, params PropertyAssignme...