Improved code layout

This commit is contained in:
Eduard Urbach 2024-06-21 12:48:01 +02:00
parent 5cedb516c5
commit 890f782af8
Signed by: eduard
GPG key ID: 49226B848C78F6C8
4 changed files with 133 additions and 110 deletions

View file

@ -19,8 +19,8 @@ func New(files ...string) *Build {
// Run parses the input files and generates an executable file.
func (build *Build) Run() (map[string]*Function, error) {
functions, errors := Scan(build.Files)
return Compile(functions, errors)
functions, errors := scan(build.Files)
return compile(functions, errors)
}
// Executable returns the path to the executable.