feat: progress
This commit is contained in:
23
pkg/engine/engine.go
Normal file
23
pkg/engine/engine.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package engine
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"git.maximhutz.com/max/lambda/pkg/repr"
|
||||
)
|
||||
|
||||
type Engine[R repr.Repr] interface {
|
||||
Run(trace bool, count int) (Trace, bool)
|
||||
Step() uint64
|
||||
State() (repr.Repr, error)
|
||||
|
||||
fmt.Stringer
|
||||
}
|
||||
|
||||
type Trace interface {
|
||||
Before() string
|
||||
After() string
|
||||
Step() uint64
|
||||
TransitionName() string
|
||||
TransitionNodes() string
|
||||
}
|
||||
Reference in New Issue
Block a user