bg de en es fr it nl pl pt sv tr zh

dsl

Declarative domain-specific language for receipt printer

Development blog

What? Write a declerative domain-specific langugae (DSL) that works as a template engine for a receipt printer. Why? An old printer class is decaying beyond any recognition. What used to be pure layout code is now littered with conditionals to decide padding and formatting, even when the...

Wrap a DSL around PHPUnit

Development blog

DRAFT ; PHP Unit test (test-class remotecontrol_handle (test-method add_participants (set (participant (list (map ("firstname" "John"))))) (set (surveyId 1)) (set (sessionKey "abc123")) (arguments sessionKey surveyId participant 'false) (result (list (map...

Report generating domain-specific language

Development blog

Why can’t the customers write their own damn reports? Or the sales people. Or the technical support. They already know some basic SQL, right? How hard could it be to create a safe subset of SQL, that also includes some HTML formatting capability? But the parser would have to be dirt simple. I...

DSL resources for Ruby

Alain M. Lafon, Phil Hofmann

This is nothing more than linked list of resources for learning how to write DSLs with Ruby, but also DSLs in general. (DSL stands for Domain Specific Language and which is a programming language that is closely modelled after the domain it is used in. Wikipedia has a good introductory article.)...