swampcompiler

package
v0.0.13 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMain added in v0.0.2

func BuildMain(mainSourceFile string, absoluteOutputDirectory string, enforceStyle bool, showAssembler bool, target Target, verboseFlag verbosity.Verbosity) ([]*loader.Package, error)

func BuildMainOnlyCompile added in v0.0.4

func BuildMainOnlyCompile(mainSourceFile string, enforceStyle bool, verboseFlag verbosity.Verbosity) ([]*loader.Package, error)

func CheckUnused

func CheckUnused(world *loader.Package) decshared.DecoratedError
func CompileAndLink(gen generate.Generator, resourceNameLookup resourceid.ResourceNameLookup, configuration environment.Environment, name string,
	filename string, outputFilename string, enforceStyle bool, verboseFlag verbosity.Verbosity) (*loader.Package, decshared.DecoratedError)

func CompileMain

func CompileMain(name string, mainSourceFile string, documentProvider loader.DocumentProvider, configuration environment.Environment, enforceStyle bool, verboseFlag verbosity.Verbosity) (*loader.Package, *decorated.Module, decshared.DecoratedError)

func CompileMainDefaultDocumentProvider added in v0.0.4

func CompileMainDefaultDocumentProvider(name string, filename string, configuration environment.Environment,
	enforceStyle bool, verboseFlag verbosity.Verbosity) (*loader.Package, decshared.DecoratedError)

func CompileMainFindLibraryRoot

func CompileMainFindLibraryRoot(mainSource string, documentProvider loader.DocumentProvider, configuration environment.Environment, enforceStyle bool, verboseFlag verbosity.Verbosity) (*loader.Package, *decorated.Module, error)
func GenerateAndLink(gen generate.Generator, resourceNameLookup resourceid.ResourceNameLookup, compiledPackage *loader.Package, outputDirectory string, packageSubDirectory string, verboseFlag verbosity.Verbosity) decshared.DecoratedError

Types

type CoreFunctionInfo

type CoreFunctionInfo struct {
	Name       string
	ParamCount uint
}

type PackageLoader

type PackageLoader struct {
	// contains filtered or unexported fields
}

func NewPackageLoader

func NewPackageLoader(filePathPrefix string, documentProvider loader.DocumentProvider,
	moduleNamespace dectype.PackageRootModuleName, world *loader.Package,
	worldDecorator *loader.WorldDecorator) *PackageLoader

type Target added in v0.0.6

type Target uint8
const (
	SwampOpcode Target = iota
	LlvmIr
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL