dsl

Automatic testing of web pages (and generating from use cases by DSL)

Hi, My goal is: Our customers could generate new web-tests. Our continuous integration server makes a test-environment deployment; it should execute the tests against it The test could also be run against some other environment. (Final acceptance tests should be made by the customer, to test fonts etc, but this would be a great pre-...

Interesting DSLs, Implemented in Scala?

I've seen BASIC and Apache Camel DSLs in Scala, and they're just fantastic. Any more examples of such DSLs? ...

Suggestions invited for College Project based on DSL implementing Ruby...

I have chosen Domain Specific Language as my College Project, implementing it using Ruby. I seek suggestions regarding the Project's Objective/Problem, from the people who have worked with DSL Projects and would ask them to post the problem on which they developed their project exclulding the solution. I am trying to seek a real time pro...

What is the best way to create multiple language versions of a domain?

I would like to create a set of domain objects in multiple languages, so that I can target different platforms. I have been looking at external DSLs as a way to define a language for my domain, and then potentially writing adapters that generate code for the languages I'm interested in targeting. Is this the best way to solve this prob...

Are annotations some sort of DSL in Java?

After a bunch of XML config files, I've seen Java moving to Annotation based configurations. Are annotations playing the role of DSL here? Is it because the static nature of Java? I'm thinking in Ruby which doesn't have ( afaik ) things like that. Is it because Ruby has good metaprogramming capabilities? Are there alternatives ( I m...

Why do I need brackets on this nullary function in this Scala expression?

This doesn't compile with Scala 2.7.7.final or 2.8.0.final for me: new FileInputStream("test.txt") getChannel transferTo( 0, Long.MaxValue, new FileOutputStream("test-copy.txt") getChannel) This does compile with Scala 2.7.7.final and 2.8.0.final for me: new FileInputStream("test.txt") getChannel() transferTo( 0, Long.MaxValu...

Lisp as an internal Ruby DSL?

I've been able to find: a) Lisp interpreters written Ruby (i.e., an external DSL) http://onestepback.org/index.cgi/Tech/Ruby/LispInRuby.red b) Prolog as a Ruby DSL http://www.kdedevelopers.org/node/2369 c) Discussion of Ruby "as" a Lisp http://www.randomhacks.net/articles/2005/12/03/why-ruby-is-an-acceptable-lisp But oddly, I can'...

Is there something like Ruby's Treetop for PHP?

Hi, as I wrote a small PHP framework with a DSL parser, and I'm not satisfied with the result, is there any tool like Treetop for PHP? It would lead to far better (and nicer) results. ...

Appropriate DSL syntax

Im trying to code my own DSL for file manipulation, just for the sake of learning. My goal is to make it understandable and easy to code. Here are 3 alternatives for appending a string to a database.yml: 1. append("windows").to("database.yml") 2. append(string: "windows").to(file: "database.yml") 3. append_string("windows").to_file(...

javascript split string on multiple fields using regex

I'm trying to build a handy dsl-ish query ability into my javascript. given: var query = "lastName = 'smith' and firstName = 'jack' or city = 'vancouver'"; what's the most elegant way of parsing this sql-esque string into usable objects such as: [ { field:'lastName', operator:'=', value:'smith', join:'and' }, { field:'firstName...

Which MongoDB DSL should I learn?

Im using MongoDB and Ruby. I have noticed there are different DSL:s. The Javascript DSL used with the MongoDB client (mongo): show dbs use my_db db.person.find({first_name: "Syd"}) The Ruby DSL used with the Ruby driver for MongoDB: connection = Mongo::Connection.new connection.database_names.each { |name| puts name } connection.da...

Groovy DSL: handling labels

I'm implementing in Groovy a DSL for some existing file format. In this format we have a construct like group basic_test { test vplan_testing { dir: global_storage; }; }; And here I have problem with this dir: global_storage - groovy considers "dir:" as a label, so I can't handle it. Do you have an idea how I can rec...

Basic rules engine architecture

We are currently developing a project in .NET that involves analyzing XML documents against a set of user defined rules. Here is an example: <Person> <Name>Bob</Name> <Cars> <Car Type="SUV" Color="Black"/> <Car Type="Sports" Color="Red"/> <Cars/> </Person> EG rules: if person's name = "Bob" and has 2 cars then ......

SQL DSL for Scala

I am struggling to create a SQL DSL for Scala. The DSL is an extension to Querydsl, which is a popular Query abstraction layer for Java. I am struggling now with really simple expressions like the following user.firstName == "Bob" || user.firstName == "Ann" As Querydsl supports already an expression model which can be used here I dec...

VS2010 DSL samples

I want to create my own DSL but working with DSL Definition is confusing. Where can I find some samples? ...

Using Entity Framework diagram or class diagram's classes in my own diagram

Hi, I've designed my own model to define the states of an activity to be used in Web Application development. In the model, I have: Actor SwimLane: defines each actor's role in the activity Manual State Element: defines the manual working state for each Actor (ie: getting the request signed form from customer) Application State...

What is a good parser generator for php?

I need to parse a small 'mini language' which users can type on my site. I was wondering what the counterparts of lex and jacc or antlr are for the world of php. ...

how can I build a business rule management system with a domain specific toolkit

Hi, how can I build a business rule management system with a domain specific toolkit? is my graduate thesis project.. I know I have to develop dst first but I have to form it according to brms' metadatas but I do not how how can I analyze brms' meta keys? is there someone who want to share his/her opinion with me? ...

Using adaptive grammars

Hi, I'm trying to implement a language (or family of languages) whose grammar can be changed dynamically. I have found no examples that serve as study cases. Can you give me some reference to any that are actually used in the real world (even from the academic world)? Does it make sense to implement a Domain-Specific Languages with a ...

Implementing a DSL with (subset) functionality of XSLT

My requirements are that I provide a way for Business Analyst-types to specify XSLT-like transformations without the complexity of XSLT or XPath. Basically there are incoming XML documents and the client needs to be able to specify situations where elements/subtrees should be edited/removed/replaced/added. It will essentially be a rule...