Break compiler out into its own package

This commit is contained in:
Sasha Koshka 2024-02-13 21:01:13 -05:00
parent 2c968404ea
commit 62cf6deeb6
3 changed files with 6 additions and 2 deletions

View File

@ -4,6 +4,7 @@ import "os"
import "fmt"
import "git.tebibyte.media/sashakoshka/fspl/cli"
import "git.tebibyte.media/sashakoshka/fspl/entity"
import "git.tebibyte.media/sashakoshka/fspl/compiler"
import ferrors "git.tebibyte.media/sashakoshka/fspl/errors"
func main () {
@ -43,7 +44,7 @@ func main () {
application.Usage()
}
compiler := new(Compiler)
compiler := new(compiler.Compiler)
compiler.Output = output.Value
compiler.Optimization = optimization.Value
compiler.Format = format.Value

View File

@ -1,4 +1,4 @@
package main
package compiler
import "os"
import "fmt"

3
compiler/doc.go Normal file
View File

@ -0,0 +1,3 @@
// Package compiler is responsible for orchestrating the different FSPL
// compilation stages, as well as invoking the LLVM IR compiler.
package compiler