feat: parser

This commit is contained in:
2025-12-23 21:54:42 -05:00
parent 61bb622dcd
commit 1d8ecba118
4 changed files with 112 additions and 15 deletions

23
pkg/lambda/expression.go Normal file
View File

@@ -0,0 +1,23 @@
package lambda
type Expression interface {
isExpression()
}
type Function struct {
Parameter string
Body Expression
}
type Call struct {
Function Expression
Argument Expression
}
type Atom struct {
Value string
}
func (_ Function) isExpression() {}
func (_ Call) isExpression() {}
func (_ Atom) isExpression() {}