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

@ -23,8 +23,8 @@ func New(files ...string) *Build {
// Run compiles the input files.
func (build *Build) Run() (compiler.Result, error) {
files, functions, types, errors := scanner.Scan(build.Files)
return compiler.Compile(files, functions, types, errors)
files, functions, structs, errors := scanner.Scan(build.Files)
return compiler.Compile(files, functions, structs, errors)
}
// Executable returns the path to the executable.