Break compiler out into its own package
This commit is contained in:
parent
2c968404ea
commit
62cf6deeb6
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package main
|
||||
package compiler
|
||||
|
||||
import "os"
|
||||
import "fmt"
|
|
@ -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
|
Loading…
Reference in New Issue