Basic type system working

This commit is contained in:
Neemek 2025-03-16 22:46:49 +01:00
parent 3f260e7ffd
commit 84cc845748
Signed by: neemek
GPG key ID: 28360A8951CD0E9B
19 changed files with 900 additions and 131 deletions

View file

@ -330,9 +330,15 @@ func (n CallNode) String() string {
// FunctionNode definition of function
type FunctionNode struct {
name string
params []string
logic Node
name string
parameters []FunctionParameter
yield TypeSignature
logic Node
}
type FunctionParameter struct {
name string
signature TypeSignature
}
func (n FunctionNode) Type() NodeType {