com.thoughtworks.dsl

Members list

Type members

Classlikes

opaque object Dsl

Attributes

Source
Dsl.scala
Supertypes
class Object
trait Matchable
class Any
Self type
Dsl.type

Types

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.

Attributes

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.
Source
Dsl.scala

Value members

Concrete methods

Attributes

Source
Dsl.scala