feat: repr, codec

This commit is contained in:
2026-01-30 16:24:17 -05:00
parent f2c8d9f7d2
commit 0ec52008bb
8 changed files with 51 additions and 23 deletions

15
pkg/repr/repr.go Normal file
View File

@@ -0,0 +1,15 @@
// Package repr defines a general definition of a representation of lambda
// calculus.
package repr
import "fmt"
// Repr is a representation of lambda calculus.
type Repr interface {
fmt.Stringer
// Id returns to name of the objects underlying representation. If is
// assumed that if two Repr objects have the same Id(), they share the same
// representation.
Id() string
}