style: moved functions around

This commit is contained in:
2025-12-30 15:58:14 -05:00
parent 412d3924eb
commit 2499921679
10 changed files with 115 additions and 93 deletions

View File

@@ -1,5 +1,5 @@
// Package "engine" provides an extensible interface for users to interfact with
// lambda calculus.
// λ-calculus.
package engine
import (
@@ -8,14 +8,14 @@ import (
"git.maximhutz.com/max/lambda/pkg/lambda"
)
// A process for reducing one lambda expression.
// A process for reducing one λ-expression.
type Engine struct {
Config *config.Config
Expression *lambda.Expression
emitter.Emitter
}
// Create a new engine, given an unreduced lambda expression.
// Create a new engine, given an unreduced λ-expression.
func New(config *config.Config, expression *lambda.Expression) *Engine {
return &Engine{Config: config, Expression: expression}
}