dsl

Properties Expansion Languages (DSLs) - Do any exist?

Here's my problem: We have N applications running in M different environments (qa/prod/etc.) with P servers per environment. Multiplied out, the number of unique configurations is in the hundreds. Each of these applications has a set of environment-specific properties (public hostname, listening port, max memory, etc.). Multiplied ou...

Haskell equivalent of Python's "Construct"

Construct is a DSL implemented in Python used to describe data structures (binary and textual). Once you have the data structure described, construct can parse and build it for you. Which is good ("DRY", "Declarative", "Denotational-Semantics"...) Usage example: # code from construct.formats.graphics.png itxt_info = Struct("itxt_info",...

Parser generator for Delphi?

Can anyone recommend a parser generator that will produce win32 Delphi code? What I'm trying to do is create a simple Domain-Specific Language. ...

Resolving problems with DSL SetUp project

I'm fighting with the InstallerDefinition.dslsetup file in a DSL setup project. I'm getting the following error: Running transformation: The setup project could not retrieve the output path for project 'PsiTraffic.Modeling.PomModel.Dsl' from the environment. Ensure that this project exists in the solution. Only Visual C# and Visual Basi...

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

Infix operators in Scala and Jython

I'm evaluating languages for a computational oriented app that needs an easy embedded scripting language for end users. I have been thinking of using Scala as the main underlying language and Jython for the scripting interface. An appeal of Scala is that I can define methods such as :* for elementwise multiplication of a matrix object a...

What are the latest tools that I can use to write a DSL (Domain-specific language) in 2009 Sep?

I looked into Logix and EasyExtend for Python. Logix hasn't been around for a while and it failed to install on Python 2.6. EasyExtend's tutorial is hopeless, the code in the tutorial doesn't even work. I am looking for something so I can write my DSL. My DSL will be used as a research tool. And I don't want to spend time learning all t...

Extending Jython Syntax

I would like to add syntax to Jython to enable a nicer API for users. For instance, matrix libraries like NumPy would benefit from having both matrix and elementwise operations like Matlab's :* vs. * infix operators. You can create a matrix in Octave using: A = [ 1, 1, 2; 3, 5, 8; 13, 21, 34 ] which is considerably nicer than NumPy's...

Simplfying DSL written for a C# app with IronPython

Thanks to suggestions from a previous question, I'm busy trying out IronPython, IronRuby and Boo to create a DSL for my C# app. Stop one is IronPython, due to the larger user and knowledge base. If I can get something to work well here, I can just stop. Here is my problem: I want my IronPython script to have access to the functions in ...

is metaprogramming possible in Javascript??

Hi, Is metaprogramming possible in javascript?? During my routine work, i happened to write the chained javascript function which is something like LINQ expression to query the JSON result. var Result = from(obj1).as("x").where("x.id=5").groupby("x.status").having(count("x.status") > 5).select("x.status"); It works perfectly and giv...

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

VS2010 and DSL deployment

Hello, Can anybody help me on this? I want some guide on how to deploy DSL in vs2010, i use the VSIX output that is in DSLPackageProject\Bin\Debug but when then i want to add that item to some project(File->Add New Item) it just adds dsl but without any DSL functionality that is available in experimental hive, Many Thanks, Hrayr ...

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

Lua Closures in implementing a DSL

Lua has a really nice no-parenthesis call syntax that coupled with function closures allow me to write the following local tag = 1 function test(obj) return function(str) return function (tbl) tbl.objtag = tag tbl.objname = str return tbl end end end test (tag) "def" { } test tag ...

e.data.GetData is always null

I am working with Visual Studio 2010, developing an Extension I need to drag and drop from a WPF TreeView in a Toolwindow onto a DSL Diagram but when I call e.data.GetData I can not get a value and want to know what I am doing wrong private void OnDragDrop(object sender, DragEventArgs e) { if (e.Data.GetDataPresent(type...

Guice-style service locator

Has anybody ever seen/attempted to write a service locator pattern which uses a Guice style configuration system? Currently I have a GWT project (which happens to use GWT-RPC) that uses a command pattern wherein my RPC servlet that looks like this... public interface TransactionService extends RemoteService { <T extends Response> ...

How to define a DSL over C#

For a little night project I would like to write a validation component that could be used in .NET application to do the usual and tedious validation of object, input parameters and post conditions. My first idea was to dump all this validation setup logic into a XML configuation file and provide a liquid interface for the people that w...

Populating a Visual DSL with database information.

Hello Guys, I have the following problem to solve: Currently we have a metadata tree of the databse schema that has a in-memory representation and a proprietary schema XML serialization as well (that is we can read/write all the in-memory data to an xml file). Currently I am developing a Visual DSL solution (diagram-like), to allow ...

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

Base a small expression DSL on the DLR or keep it hand-rolled in F#?

I'm building a spreadsheet-like application, where a lot of small calculations needs to be stitched together in a tree-structure. These calculations are user-defined and I need a way for the user to enter them at runtime. My current approach is to write a small "expression DSL" in F#, where I parse the input with FParsec, build a syntax...