Latest articles tagged Code generation:

Diesel, Part 3: Bootstrapping Diesel

from on 20.05.2015

I ‘ve followed with interest the efforts of my colleagues to implement a lightweight DSL approach using an LL(1) parser in Ruby. Daniel Mölle has shown in his blog post how easily a Melody DSL can be implemented using his Diesel approach. I question myself whether this simple approach is an advantage for more realistic tasks. The Melody DSL is a sort of a Hello World example that is too simplistic in my opinion. Once a project is complex enough for a DSL, I expect to see a significant increase in the number of keywords and language constructs. Continue reading

Diesel, Part 1: A Plea for a Lightweight Approach to DSLs

from on 19.12.2014

Domain-specific languages and code generation have proved to be very helpful tools in many of our projects. However, several colleagues and I share the impression that the tools of the trade come with cumbersome restrictions and dependencies. Therefore, a while back, we posed the following hypothesis: We should investigate lightweight approaches to parser/generator toolkits that integrate particularly well with our usual development environments and build systems. Continue reading