api

package
v0.0.0-...-724e561 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WarnNormal  = diagnostics.WarnNormal
	WarnAsError = diagnostics.WarnAsError
	WarnIgnore  = diagnostics.WarnIgnore
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CompileOptions

type CompileOptions struct {
	WarningMode diagnostics.WarningMode
	Target      *Target
	Debug       bool
}

type Sable

type Sable struct {
	File     *diagnostics.File
	Lexer    lexer.Lexer
	Parser   parser.Parser
	Checker  checking.Checker
	Emitter  ir.Emitter
	Frontend frontend.Frontend
	Backend  backend.Backend
}

func New

func New() *Sable

func (*Sable) CompileFile

func (s *Sable) CompileFile(path string, opts *CompileOptions) (string, []diagnostics.Diagnostic, error)

type Target

type Target struct {
	Arch backend.Arch
	OS   string
	ABI  backend.ABI
}

func AutoDetectTarget

func AutoDetectTarget() (*Target, error)

func NewTarget

func NewTarget(arch backend.Arch, os string, abi backend.ABI) *Target

func ParseTarget

func ParseTarget(tgt string) (*Target, error)

func (*Target) String

func (t *Target) String() string

Jump to

Keyboard shortcuts

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