feat: rename repr to expr

This commit is contained in:
2026-02-07 10:25:20 -05:00
parent bbe027e9f4
commit a790a293cf
9 changed files with 54 additions and 50 deletions

View File

@@ -7,7 +7,7 @@ import (
)
type Engine interface {
Load(Repr) (Process, error)
Load(Expr) (Process, error)
Name() string
InType() string
}
@@ -22,10 +22,10 @@ func (e convertedEngine[T]) InType() string { return e.inType }
func (e convertedEngine[T]) Name() string { return e.name }
func (e convertedEngine[T]) Load(r Repr) (Process, error) {
t, ok := r.Data().(T)
func (e convertedEngine[T]) Load(expr Expr) (Process, error) {
t, ok := expr.Data().(T)
if !ok {
return nil, fmt.Errorf("'ncorrent format '%s' for engine '%s'", r.ID(), e.inType)
return nil, fmt.Errorf("'ncorrent format '%s' for engine '%s'", expr.Repr(), e.inType)
}
process, err := e.engine(t)