Break compiler out into its own package
This commit is contained in:
parent
87fa994f27
commit
a46939b3f8
@ -4,6 +4,7 @@ import "os"
|
|||||||
import "fmt"
|
import "fmt"
|
||||||
import "git.tebibyte.media/sashakoshka/fspl/cli"
|
import "git.tebibyte.media/sashakoshka/fspl/cli"
|
||||||
import "git.tebibyte.media/sashakoshka/fspl/entity"
|
import "git.tebibyte.media/sashakoshka/fspl/entity"
|
||||||
|
import "git.tebibyte.media/sashakoshka/fspl/compiler"
|
||||||
import ferrors "git.tebibyte.media/sashakoshka/fspl/errors"
|
import ferrors "git.tebibyte.media/sashakoshka/fspl/errors"
|
||||||
|
|
||||||
func main () {
|
func main () {
|
||||||
@ -43,7 +44,7 @@ func main () {
|
|||||||
application.Usage()
|
application.Usage()
|
||||||
}
|
}
|
||||||
|
|
||||||
compiler := new(Compiler)
|
compiler := new(compiler.Compiler)
|
||||||
compiler.Output = output.Value
|
compiler.Output = output.Value
|
||||||
compiler.Optimization = optimization.Value
|
compiler.Optimization = optimization.Value
|
||||||
compiler.Format = format.Value
|
compiler.Format = format.Value
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
package main
|
package compiler
|
||||||
|
|
||||||
import "os"
|
import "os"
|
||||||
import "fmt"
|
import "fmt"
|
3
compiler/doc.go
Normal file
3
compiler/doc.go
Normal 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
|
Loading…
Reference in New Issue
Block a user