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 (*Sable) CompileFile ¶
func (s *Sable) CompileFile(path string, opts *CompileOptions) (string, []diagnostics.Diagnostic, error)
Click to show internal directories.
Click to hide internal directories.