trait
Dsl[-Keyword, Domain, +Value] extends AnyRef
Abstract Value Members
-
abstract
def
interpret(keyword: Keyword, handler: (Value) ⇒ Domain): Domain
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
def
+(other: String): String
-
def
->[B](y: B): (Dsl[Keyword, Domain, Value], B)
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
def
ensuring(cond: (Dsl[Keyword, Domain, Value]) ⇒ Boolean, msg: ⇒ Any): Dsl[Keyword, Domain, Value]
-
def
ensuring(cond: (Dsl[Keyword, Domain, Value]) ⇒ Boolean): Dsl[Keyword, Domain, Value]
-
def
ensuring(cond: Boolean, msg: ⇒ Any): Dsl[Keyword, Domain, Value]
-
def
ensuring(cond: Boolean): Dsl[Keyword, Domain, Value]
-
-
-
def
finalize(): Unit
-
def
formatted(fmtstr: String): String
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
def
→[B](y: B): (Dsl[Keyword, Domain, Value], B)
Inherited by implicit conversion any2stringadd from
Dsl[Keyword, Domain, Value] to any2stringadd[Dsl[Keyword, Domain, Value]]
Inherited by implicit conversion StringFormat from
Dsl[Keyword, Domain, Value] to StringFormat[Dsl[Keyword, Domain, Value]]
Inherited by implicit conversion Ensuring from
Dsl[Keyword, Domain, Value] to Ensuring[Dsl[Keyword, Domain, Value]]
Inherited by implicit conversion ArrowAssoc from
Dsl[Keyword, Domain, Value] to ArrowAssoc[Dsl[Keyword, Domain, Value]]
The domain-specific interpreter for
Keyword
inDomain
, which is a dependent type type class that registers an asynchronous callback function, to handle theValue
insideKeyword
.Author:
杨博 (Yang Bo)
The value held inside
Keyword
.Creating a collaborative DSL in Dsl.scala is easy. Only two steps are required: