feat: fmt.Stringer

This commit is contained in:
2026-01-17 15:37:31 -05:00
parent dbb988b633
commit 3ef27bc28a
3 changed files with 21 additions and 37 deletions

View File

@@ -2,10 +2,14 @@
// expression types in the lambda interpreter.
package expr
import (
"fmt"
)
// Expression is the base interface for all evaluatable expression types.
// Different evaluation modes (lambda calculus, SKI combinators, typed lambda
// calculus, etc.) implement this interface with their own concrete types.
type Expression interface {
// String returns a human-readable representation of the expression.
String() string
// The expression should have a human-readable representation.
fmt.Stringer
}