Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Error = Kind{ Name: "Error", Color: color.New(color.FgRed), Description: "compiler can not succeed", } Info = Kind{ Name: "Info", Color: color.New(color.FgGreen), Description: "compiler information", } Warning = Kind{ Name: "Warning", Color: color.New(color.FgYellow), Description: "compiler can still succeed", } )
View Source
var ( LexicalAnalysis = Stage{ Name: "lexical analysis", Alias: "scanning", } SyntacticalAnalysis = Stage{ Name: "syntactical analysis", Alias: "grammar", } SemanticAnalysis = Stage{ Name: "semantic analysis", Alias: "analysis", } )
Functions ¶
This section is empty.
Types ¶
type Bag ¶
type Bag struct {
// contains filtered or unexported fields
}
func (*Bag) CreateDiagnostics ¶
func (recorder *Bag) CreateDiagnostics(converter OffsetConversionFunction) *Diagnostics
func (*Bag) Record ¶
func (recorder *Bag) Record(entry RecordedEntry)
type Diagnostics ¶
type Diagnostics struct {
// contains filtered or unexported fields
}
func (*Diagnostics) ListEntries ¶
func (diagnostics *Diagnostics) ListEntries() (values []Entry)
type InvalidIndentationError ¶
func (*InvalidIndentationError) Name ¶
func (error *InvalidIndentationError) Name() string
type InvalidStatementError ¶
func (*InvalidStatementError) Name ¶
func (error *InvalidStatementError) Name() string
type KnownError ¶
type KnownError interface {
Name() string
}
type Printer ¶
type Printer interface { PrintFormatted(format string, arguments ...interface{}) PrintLine(message string) Print(message string) }
func NewFmtPrinter ¶
func NewFmtPrinter() Printer
func NewTestPrinter ¶
type RecordedEntry ¶
type RichError ¶
type RichError struct { Error KnownError CommonReasons []string }
type SpecificError ¶
type SpecificError struct {
Message string
}
func (*SpecificError) Name ¶
func (error *SpecificError) Name() string
type UnexpectedTokenError ¶
func (*UnexpectedTokenError) Name ¶
func (error *UnexpectedTokenError) Name() string
Click to show internal directories.
Click to hide internal directories.