Add expression functions with context boundaries

This commit is contained in:
pavel 2026-08-27 23:05:49 +02:00
commit 773c34f3f4
18 changed files with 391 additions and 52 deletions

View file

@ -60,20 +60,24 @@ type FieldDecl struct {
}
type FunctionSignature struct {
Name string
TypeParams []string
Params []Param
ReturnType string
ReturnRef TypeRef
Name string
TypeParams []string
Params []Param
ReturnType string
ReturnRef TypeRef
ReturnExplicit bool
}
type FunctionDecl struct {
Name string
TypeParams []string
Params []Param
ReturnType string
ReturnRef TypeRef
Body []Stmt
Name string
TypeParams []string
Params []Param
ReturnType string
ReturnRef TypeRef
ReturnExplicit bool
Body []Stmt
ExpressionBody Expr
InferReturn bool
}
type Param struct {