errors

package
v3.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndOfFileError
	UnexpectedTokenError
	UnexpectedEndError
	InvalidAssignmentError
	SyntaxError
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error struct {
	Message string
	ErrType int
}

func InitError

func InitError(msg string, errType int) *Error

func NewTypeParsingError

func NewTypeParsingError(tokenLiteral, targetType string, line int) *Error

func (*Error) Error

func (e *Error) Error() string

func (*Error) IsEOF

func (e *Error) IsEOF() bool

func (*Error) IsUnexpectedEmptyLine

func (e *Error) IsUnexpectedEmptyLine(stmtCount int) bool

func (*Error) IsUnexpectedEnd

func (e *Error) IsUnexpectedEnd() bool

func (*Error) IsUnexpectedToken

func (e *Error) IsUnexpectedToken() bool

Jump to

Keyboard shortcuts

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