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-...
I've seen BASIC and Apache Camel DSLs in Scala, and they're just fantastic. Any more examples of such DSLs?
...
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...
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...
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...
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...
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'...
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.
...
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(...
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...
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...
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...
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 ......
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...
I want to create my own DSL but working with DSL Definition is confusing.
Where can I find some samples?
...
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...
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.
...
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?
...
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 ...
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...