dsl

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...

Domain Specific Language Bloggers

I have a current need to greatly increase my knowledge around DSLs. Who are the big names in DSLs? What blogs should I be reading? ...

Which Java oriented lexer parser for simple project (ANTLR, DIY, etc)

I am working on a small text editor project and want to add basic syntax highlighting for a couple of languages (Java, XML..just to name a few). As a learning experience I wanted to add one of the popular or non popular Java lexer parser. What project do you recommend. Antlr is probably the most well known, but it seems pretty complex...

Idea: Embed data/DSLs in Java as comments and generate Java code with APT

I had an idea and I wanted to run it by you to get some feedback. Please look the following over and let me know what you think, whether it's positive or negative. I've always wished that there was a way to embed certain pieces of data in Java code without having to follow Java's rules all the time. I've heard a lot of talk about Domain...

Using a DSL to generate C# Code

Currently the project I'm working with does not have completely fixed models (due to an external influence) and hence I'd like some flexibility in writing them. Currently they are replicated across three different layers of the application (db, web api and client) and each has similar logic in it (ie. validation). I was wondering if the...

How can I use one texttemplate to generate text from N Diagrams in VS DSL Tools

I´ve got a project with 10 DSL Diagrams. I´m generating SQL Code from them. Now a use one .tt for each diagram. When I make a new diagram I have to copy one .tt and change the name and the file reference. So finally I end up with: N diagrams, N .tt and N .sql file. I want: N diagrams, 1 .tt and 1 .sql file. ...

Language that supports serializing coroutines

I don't think such support exists in current languages. I think what I want to do could be solved by a "workflow engine". But the problem I have with workflow's is generally they are: Declarative/verbose and I find a imperative style much more succinct Heavyweight, I'll have a lot of simple though diverse little state machines I've i...

DSL vs Method calls: pros and cons

I have a rather peculiar data source I have to work with (an interface to an accounting application actually). While it is pretty powerful, I have to jump through pretty many hoops to get the data I want out of it. For example, if I want to get the contents of a table and specify which columns it should return, I have to iterate through ...

YAML as a Data DSL in .NET (C#)

Anyone out there using YAML as a data DSL in .NET? I'd like to use YAML because it's more lightweight than XML. I intend to use this DSL as a "power user" configuration tool for one of my existing applications. My concerns: How is the support for YAML using one of the .NET community libraries? Does YAML have staying power? Will ...

Visual Studio Isolated Shell Toolbox not being updated after uninstall/install of new package version

I am developing a DSL package that has a number of toolbar items. If I add a new toolbar item in the DSL explorer install the new package into the Visual Studio isolated shell the new items don't appear. I am testing this on a virtual machine first by installing the first version of the package, uninstalling it and then installing the ...

Writing a simple parser

I need to write a simple parser to a sort of Domain Specific Language. It needs to have basic arithmatics with proper operators evaluation order and a syntax to call functions of the underlying environment which can be overloaded. What is the simplest way to write such a parser? Is there something I can adapt or use out of the box? I'm w...

What is domain specific language? Anybody using it? and in what way?

I guess I am looking for some kind of Intro and see if anybody have used it. Are there any particular advantages of using it? Wikipedia: "domain-specific language (DSL) is a programming language or specification language dedicated to a particular problem domain, a particular problem representation technique, and/or a particular solutio...

C# String to Expression Tree

This is a simplified version of the original problem. I have a class called Person: public class Person { public string Name { get; set; } public int Age { get; set; } public int Weight { get; set; } public DateTime FavouriteDay { get; set; } } ...and lets say an instance: var bob = new Person(){ Name = "Bob", ...

translating blocks and statements for a DSL

I want to write a simple Ruby DSL to translate some statements and expressions into another language. A basic example would be: some_function { t + 2 } Here, t is not a ruby variable and thus the block can't (and must not!) be evaluated by Ruby. So my best bet would be to use the parsing output (or AST) to do the translation mysel...

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...

Is it possible to persist a DSL Java object with JPA?

I have a DSL Java object, i.e. a POJO which returns this in setters plus the getters/setters have an unusual naming pattern: public class Demo { private long id; private String name; private Date created; public Demo id (long value) { id = value; return this; } public String id () { return id; } public Demo name...

Choice of DSL framework

I am working on a project that requires me to define a DSL. Since coming up with the right DSL is critical for my project, I decided to evaluate existing frameworks that help in defining DSLs,parsing it and code generation(which has to be in a .NET based language) The frameworks I considered are : Boo language that has a customizable c...

I need a DSL for time calculations

Does anyone know of a DSL for time calculations, something that would be able to understand concepts like "2nd business day after the last business day of the month"? I don't mind writing the parser, but I need help with the language itself. ...

Ruby DSL (Domain Specific Language) repositories, examples

I am seeking excellent examples of Ruby DSLs (Domain Specific Languages). Which repositories, projects do you know of that are worth a read? Why is it (or: are they) great examples? I am particularly interested in more complex examples that are well thought-out and designed. ...

Is there a .NET based CSS abstraction library?

I've been working on a really large project for almost 2 years and the client requirements keep changing. These changes, of course, effect everything and I would like to find a way to work with the CSS in a more dynamic fashion. I assume I could get one of the ruby or python CSS DSLs running under ironRuby/Python but this client is very...