Updated documentation

This commit is contained in:
Eduard Urbach 2025-02-21 22:39:01 +01:00
parent cf1ed9948f
commit 65b74046e1
Signed by: eduard
GPG key ID: 49226B848C78F6C8
6 changed files with 58 additions and 44 deletions

12
src/build/Run.go Normal file
View file

@ -0,0 +1,12 @@
package build
import (
"git.akyoto.dev/cli/q/src/compiler"
"git.akyoto.dev/cli/q/src/scanner"
)
// Run compiles the input files.
func (build *Build) Run() (compiler.Result, error) {
constants, files, functions, structs, errors := scanner.Scan(build.Files)
return compiler.Compile(constants, files, functions, structs, errors)
}