Updated documentation
This commit is contained in:
parent
cf1ed9948f
commit
65b74046e1
6 changed files with 58 additions and 44 deletions
12
src/build/Run.go
Normal file
12
src/build/Run.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue