Tag Archives: dsl

Scala and Adding New Syntax

One interesting thing about some languages is their support for adding new syntax. While all languages have the ability to add new functions or types some have specific properties that make it easy to add what looks like new built-in … Continue reading

Posted in Code, Scala | Tagged , , , | 14 Comments

Coffee DSL Redone With Meta-Programming

In a previous post I wrote about DSLs as Jargon. I implemented a simple Coffee DSL that would allow code to parse an order written by a human and turn it into a domain model. I used a fairly basic … Continue reading

Posted in Code, Groovy, Ruby | Tagged , | 1 Comment

When Do DSLs Make Sense?

Domain Specific Languages (DSLs) are discussed all the time. There is a lot of writing about implementing DSLs and many dynamic languages like Ruby and Groovy make it really fairly easy to do it. But rarely do I see it … Continue reading

Posted in Code | Tagged | 1 Comment

Coffee DSL in Groovy

I thought I’d follow up with my previous post with the Coffee Domain Specific Language in the Groovy Language. This is really one of my first forays into Groovy, so it’s pretty rough. It’s really just a direct translation of … Continue reading

Posted in Code, Groovy | Tagged , | 2 Comments

Understanding Domain Specific Languages as Jargon

Domain Specific Languages (DSLs) are the idea of creating syntaxes that model a very specific problem domain. Domain Specific Languages are not a new concept. Some people call them ‘little languages’. The Unix world has a bunch of little languages. … Continue reading

Posted in Code, Ruby | Tagged , | 2 Comments