Implemented basic support for function pointers

This commit is contained in:
Eduard Urbach 2025-01-30 16:33:20 +01:00
parent 47f2bc7947
commit 860795c1ec
Signed by: eduard
GPG key ID: 49226B848C78F6C8
8 changed files with 166 additions and 15 deletions

View file

@ -29,6 +29,10 @@ func (f *Function) CompileCall(root *expression.Expression) (*Function, error) {
if name == "syscall" {
return nil, f.CompileSyscall(root)
}
if name == "store" {
return nil, f.CompileMemoryStore(root)
}
} else {
pkg = nameNode.Children[0].Token.Text(f.File.Bytes)
name = nameNode.Children[1].Token.Text(f.File.Bytes)