feat: marshalers to codecs

This commit is contained in:
2026-02-07 00:36:05 -05:00
parent b61ca744e0
commit 30382bee7e
9 changed files with 79 additions and 107 deletions

View File

@@ -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
}