Simplified compiler interface
All checks were successful
/ test (push) Successful in 15s

This commit is contained in:
Eduard Urbach 2025-06-19 14:01:00 +02:00
parent e5baba175b
commit df92f55df6
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
3 changed files with 8 additions and 6 deletions

View file

@ -1,8 +1,12 @@
package compiler
import "git.urbach.dev/cli/q/src/scanner"
import (
"git.urbach.dev/cli/q/src/build"
"git.urbach.dev/cli/q/src/scanner"
)
// Compile waits for the scan to finish and compiles all functions.
func Compile(scan scanner.Result) (Result, error) {
func Compile(b *build.Build) (Result, error) {
scanner.Scan(b)
return Result{}, nil
}