feat: registry, normalorder engine, lambda codec and marshaler

This commit is contained in:
2026-01-30 20:07:35 -05:00
parent 0cdce0e42c
commit 68cc1624c7
6 changed files with 235 additions and 19 deletions

19
pkg/lambda/marshaler.go Normal file
View File

@@ -0,0 +1,19 @@
package lambda
import (
"fmt"
"git.maximhutz.com/max/lambda/pkg/codec"
)
type Marshaler struct{}
func (m Marshaler) Decode(string) (Expression, error) {
return nil, fmt.Errorf("unimplemented")
}
func (m Marshaler) Encode(e Expression) (string, error) {
return e.String(), nil
}
var _ codec.Marshaler[Expression] = (*Marshaler)(nil)