feat: new engine format
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
@@ -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"))
|
||||
|
||||
Reference in New Issue
Block a user