Added build result struct
This commit is contained in:
parent
2676ac1ebb
commit
03a7651cad
7 changed files with 61 additions and 54 deletions
|
@ -18,7 +18,7 @@ func New(files ...string) *Build {
|
|||
}
|
||||
|
||||
// Run parses the input files and generates an executable file.
|
||||
func (build *Build) Run() (map[string]*Function, error) {
|
||||
func (build *Build) Run() (Result, error) {
|
||||
functions, errors := scan(build.Files)
|
||||
return compile(functions, errors)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue