feat: parser
This commit is contained in:
23
pkg/lambda/expression.go
Normal file
23
pkg/lambda/expression.go
Normal 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() {}
|
||||
Reference in New Issue
Block a user