feat: new engine format

This commit is contained in:
2026-02-07 00:12:50 -05:00
parent 8b80cea32b
commit 1d94fa70ff
11 changed files with 45 additions and 100 deletions

View File

@@ -77,8 +77,7 @@ func LambdaReduce() *cobra.Command {
}
// Create process.
process := engine.Load()
err = process.Set(compiled)
process, err := engine.Load(compiled)
if err != nil {
return err
}

View File

@@ -15,7 +15,7 @@ func GetRegistry() *registry.Registry {
(registry.RegisterCodec(r, convert.Saccharine2Lambda{}, "saccharine", "lambda"))
// Engines
(registry.RegisterEngine(r, normalorder.Engine{}, "normalorder", "lambda"))
(registry.RegisterEngine(r, normalorder.NewProcess, "normalorder", "lambda"))
// Marshalers
(registry.RegisterMarshaler(r, lambda.Marshaler{}, "lambda"))