lox_error

package
v0.0.0-...-e9dc133 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoxErrors

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

func NewLoxErrors

func NewLoxErrors(reporter Reporter) *LoxErrors

func (*LoxErrors) HadParsingError

func (l *LoxErrors) HadParsingError() bool

func (*LoxErrors) HadResolutionError

func (l *LoxErrors) HadResolutionError() bool

func (*LoxErrors) HadRuntimeError

func (l *LoxErrors) HadRuntimeError() bool

func (*LoxErrors) HadScanningError

func (l *LoxErrors) HadScanningError() bool

func (*LoxErrors) ParserError

func (l *LoxErrors) ParserError(t *token.Token, message string) error

func (*LoxErrors) ResetError

func (l *LoxErrors) ResetError()

func (*LoxErrors) ResolutionError

func (l *LoxErrors) ResolutionError(t *token.Token, message string) error

func (*LoxErrors) RuntimeError

func (l *LoxErrors) RuntimeError(t *token.Token, message string) error

func (*LoxErrors) ScannerError

func (l *LoxErrors) ScannerError(line int, message string)

type LoxReporter

type LoxReporter struct{}

func (LoxReporter) Report

func (LoxReporter) Report(line int, where, message string)

type Reporter

type Reporter interface {
	Report(line int, where, message string)
}

Jump to

Keyboard shortcuts

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