com.thoughtworks.dsl

Type members

Classlikes

object Dsl

Types

@implicitNotFound("The keyword:\n ${Keyword}\nis not supported inside a function that returns:\n${Domain}.")
opaque type Dsl[-Keyword, Domain, +Value]

The domain-specific interpreter for Keyword in Domain, which is a dependent type type class that registers an asynchronous callback function, to handle the Value inside Keyword.

The domain-specific interpreter for Keyword in Domain, which is a dependent type type class that registers an asynchronous callback function, to handle the Value inside Keyword.

Type parameters:
Value

The value held inside Keyword.

Authors:

杨博 (Yang Bo)

Example:

Creating a collaborative DSL in Dsl.scala is easy. Only two steps are required:

  • Defining their domain-specific Keyword.
  • Implementing this Dsl type class, which is an interpreter for an Keyword.