feat: marshalers to codecs
This commit is contained in:
@@ -12,14 +12,15 @@ func GetRegistry() *registry.Registry {
|
||||
r := registry.New()
|
||||
|
||||
// Codecs
|
||||
(registry.RegisterCodec(r, convert.Saccharine2Lambda{}, "saccharine", "lambda"))
|
||||
(registry.RegisterConversion(r, convert.Saccharine2Lambda, "saccharine", "lambda"))
|
||||
(registry.RegisterConversion(r, convert.Lambda2Saccharine, "lambda", "saccharine"))
|
||||
|
||||
// Engines
|
||||
(registry.RegisterEngine(r, normalorder.NewProcess, "normalorder", "lambda"))
|
||||
|
||||
// Marshalers
|
||||
(registry.RegisterMarshaler(r, lambda.Marshaler{}, "lambda"))
|
||||
(registry.RegisterMarshaler(r, saccharine.Marshaler{}, "saccharine"))
|
||||
(registry.RegisterCodec(r, lambda.Marshaler{}, "lambda"))
|
||||
(registry.RegisterCodec(r, saccharine.Marshaler{}, "saccharine"))
|
||||
|
||||
return r
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user