Added compiler and scanner packages
All checks were successful
/ test (push) Successful in 15s

This commit is contained in:
Eduard Urbach 2025-06-19 13:05:55 +02:00
parent f1457af6be
commit e5baba175b
Signed by: akyoto
GPG key ID: 49226B848C78F6C8
12 changed files with 221 additions and 4 deletions

4
src/scanner/Result.go Normal file
View file

@ -0,0 +1,4 @@
package scanner
// Result contains everything the compiler needs to start a build.
type Result struct{}

10
src/scanner/Scan.go Normal file
View file

@ -0,0 +1,10 @@
package scanner
import (
"git.urbach.dev/cli/q/src/build"
)
// Scan scans all the files included in the build.
func Scan(b *build.Build) Result {
return Result{}
}

13
src/scanner/Scan_test.go Normal file
View file

@ -0,0 +1,13 @@
package scanner_test
import (
"testing"
"git.urbach.dev/cli/q/src/build"
"git.urbach.dev/cli/q/src/scanner"
)
func TestScan(t *testing.T) {
b := build.New("../../examples/hello")
scanner.Scan(b)
}