Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [dsl]

Domain-specific languages are computer languages specialized to a particular application domain. Examples are HTML, Unix shell scripts and MediaWiki templates.

3
votes
0answers
150 views

DSL design for iOS Autolayout

I am building a small DSL for iOS' autolayout feature. Obviously I want to have a typesafe way to define autolayouts instead of doing VSL. I came up with the following: ...
2
votes
0answers
55 views

Business Rule DSL for Values in Domain-Driven Design

Following the patterns from the book Domain Modeling Made Functional, I am implementing a single-case union for the simple values in my domain model instead of using primitives. The union cases have ...
1
vote
0answers
65 views

Extending kotlinx.html dsl to create functions that include bootstrap classes

I'm looking to create a library that extends kotlinx.html and will include functions that have default css classes. The goal is to be able to use a function row{} ...
1
vote
0answers
66 views

Extending a simple Tree parser and lexer

Yesterday, I decided to learn about scala's Parser-Combinator library. After a while, I was able to write a simple Tree parser and lexer which understands trees written like this: ...
-1
votes
0answers
61 views
+50

Typeclass-oriented example project with implicit classes

The following code will only be an example of a project that due to (nested) higher kinds heavily relies on typeclasses for its DSL. When reviewing the code keep in mind that this is an example, so I ...