dsl

Designing SQL alternative?

I'm thinking of designing & implementing my own SQL-equivalent (DDL+DML) that is... a pure relational algebraic language, and has an elegant Lisp-/Scheme-like syntax Assuming an RDBMS such as MySQL, where exactly would I need to start my language design work? On top of the storage engine layer such as InnoDB? I don't know what all R...

How to get started with Ruby? How can I use Ruby? What is it famous for? How is a DSL going to be useful?

What are some great Learning resources? What kind of problems do I solve with Ruby? Is learning ruby on rails same as ruby? If my current background is visual studio and microsoft.net framework, is IronRuby the best way for me? Awful lot of questions, please suggest. ...

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

Text templates calling other templates and preserving existing code

I'm just starting to get into generating code from a DSL using visual studio and was looking for help in how to get one template to call multiple sub-templates. I was also wondering if there is any merge features that make it easy to regenerate the code when you make changes to your model without loosing any code that has been added. ...

Composable Grammars

There are so many programming languages which support the inclusion of mini-languages. PHP is embedded within HTML. XML can be embedded within JavaScript. Linq can be embedded within C#. Regular expressions can be embedded in Perl. // JavaScript example var a = <node><child/></node> Come to think of it, most programming languages can ...

Which one suits better UI or DSL?

We have a system whose behavior is defined by a number of XML files.(Roughly 50 different XML files each of which governs the behavior of a sub system.) The XML files for legacy reasons are in a custom format,meant for easy consumption by various components in the system. The custom format is not very intuitive and readable for a hum...

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

Which parts of a Ruby DSL will I need to build by hand?

If I want to build a DSL in Ruby 1.9 or JRuby, will I need to do any of these stages by hand: Lexing Interpretation Parsing Just-in-time compilation Obviously, being a programmer, I don't like to write actual code as much as I can get away with, so I'm hoping none of these steps require manual labor :) ...

What's an example of a small custom DSL for internet advertising?

I'm just learning about DSLs and I'm trying to put them in a context I can understand. Let's say we're talking about internet advertising, for example - since that's a field I would like to work in - what's an example of a small custom DSL you might build? Also, what are some of the high level technical steps you would need to impleme...

Formula in a database row - Java

Either this requirement is weird or i should be confusing myself too much I have a rule table with 30 columns. Every row from a feed file is compared against some or all conditions based on the type of feed. The domain is banking and the application is for loan reporting (say, reporting the amount of total secured loans and unsecured loa...

Adding a Menu item to the context Menu in a VS2008 DSL

I'm currently trying to create a Bi-directional DSL for the company I'm working for and want to add a context menu to the diagram to provide a mechanism for the user to request a code import. I know that in VS2005 the Commands.ctc file is used to achieve this and 2008 appears to be using Commands.ctc. However its not very easy trying to ...

Successful Domain-Specific Languages ? Which one do you use ?

Hi, I'm interested in Domain Specific Languagess design and implementation. Much of the DSLs that I know stem from the academic world. Can you give me some pointers to DSLs that are actually used in the industry ? and that you use on a daily-basis...which are really convenient.. (I'm interested in declarative languages too, but not re...

JavaBeans and DSLs

It's 2009 and we still all hold on the JavaBeans despite all their flaws, mostly because of the tooling support which we wrote in our own blood. But now we have method chaining and internal DSLs and some pressure to replace or extend JavaBeans with DSL classes. Has anyone an implementation that implements PropertyDescriptor for a DSL (w...

What are the main advantages of switching to DLR for my scripting language?

I have written a DSL using Antlr to generate a lexer and parser from my grammar file. The parser generates an abstract syntax tree which contains various nodes (e.g. a function node) which I can calculate. In the code for the function nodes I take care of binding - checking function names and parameter types for matches from a library of...

Learning More About Parsing

I have been programming since 1999 for work and fun. I want to learn new things, and lately I've been focused on parsing, as a large part of my job is reading, integrating and analyzing data. I also have a large number of repetitive tasks that I think I could express in very simple domain-specific languages if the overhead was low enough...

How to resolve "DomainClass XXX is not abstract, and is neither a root of the model nor embedded within it." warning.

I'm getting the following warning in VisualStudio: "DomainClass ManagedField is not abstract, and is neither a root of the model nor embedded within it." The warning is correct my class isn't abstract (and shouldn't be) and it shouldn't be the root of the model. So it comes down to the last part "nor embedded within it" my class Manage...

For what kind of problems do you write a DSL?

I'm just curious about Domain-Specific Languages. I have seen them several times in articles, and it seems that they can be used outside assurance or bank data definition problems. So I come to SO to have some concrete input. Did you ever use a DSL? Write one. If yes, what's it feel like? Do you think one of your projects could be be...

log4j in grails : how to log into file ?

hi, I have this log4j configuration in my grails config.groovy log4j = { error 'org.codehaus.groovy.grails.web.servlet', // controllers 'org.codehaus.groovy.grails.web.pages' // GSP warn 'org.mortbay.log' appenders { rollingFile name:'infoLog', file:'info.log', threshold: org.apache.log4j....

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

StructureMap Exception Code: 202 No Default Instance defined...

When I register the following in SM and then attempt to create an instance I get the exception - 'StructureMap Exception Code: 202 No Default Instance defined for PluginFamily...' Scan(x => { x.Assembly("MVCDemo"); x.Assembly("MVCDemo.Infrastructure"); x.Assembly("MVCDemo.Services"); ...