Implemented package specific structs

This commit is contained in:
Eduard Urbach 2025-02-08 16:06:39 +01:00
parent d71bbd51cf
commit 8357aefc01
Signed by: eduard
GPG key ID: 49226B848C78F6C8
15 changed files with 121 additions and 78 deletions

View file

@ -30,15 +30,15 @@ func (f *Function) CompileCall(root *expression.Expression) (*Function, error) {
case "syscall":
return nil, f.CompileSyscall(root)
case "new":
typ, err := f.CompileNew(root)
return &Function{
Output: []*Output{
{
Type: &types.Pointer{
To: f.Types[root.Children[1].Token.Text(f.File.Bytes)],
},
Type: typ,
},
},
}, f.CompileNew(root)
}, err
case "delete":
return nil, f.CompileDelete(root)
case "store":