Resolves a com.tersesystems.blindsight.AST.BObject to an Argument.
Resolves a com.tersesystems.blindsight.AST.BObject to an Argument.
val argument: Argument = ArgumentResolver(bobj("foo" -> "bar"))
This is a service interface trait, which should be implemented the service loader pattern.
A DSL to produce valid AST of values.
A DSL to produce valid AST of values.
This is "inspired" by JSON4S code.
import com.tersesystems.blindsight.AST._ import com.tersesystems.blindsight.DSL._ ("name", "joe") ~ ("age", 15) == BObject(BField("name",BString("joe")) :: BField("age",BInt(15)) :: Nil)
Resolves a com.tersesystems.blindsight.AST.BObject to Markers.
Resolves a com.tersesystems.blindsight.AST.BObject to Markers.
val markers: Markers = MarkersResolver(bobj("foo" -> "bar"))
This is a service interface trait, which should be implemented the service loader pattern.
The abstract syntax tree.
The abstract syntax tree. This is used to represent valid structured data, without requiring it to be in a particular format, i.e. JSON, logfmt, or XML. Instead, either MarkersResolver or ArgumentResolver is used to convert from AST to Markers or Argument, respectively.
A tree is typically constructed by using the DSL.
import com.tersesystems.blindsight.AST._ import com.tersesystems.blindsight.DSL._ val o: BObject = bobj("foo" -> "bar")
(Since version 1.0.0) This is a typo of bobj (short for bobject)