errz

package
v0.0.0-...-2bc12df Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsMatchError

func IsMatchError(err error) bool

IsMatchError returns true if err is a MatchError, false otherwise.

func IsSyntaxError

func IsSyntaxError(err error) bool

IsSyntaxError returns true if err is a syntax error, false otherwise.

Types

type IncompleteOperatorError

type IncompleteOperatorError struct {
	Reason string
}

IncompleteOperatorError represents an incomplete operator that was found when parsing the expression. The set of possible incomplete operators consists of the parens "()" operator, and the "not" operator.

func (IncompleteOperatorError) Error

func (e IncompleteOperatorError) Error() string

type MatchError

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

MatchError represents the case when the input tokens did not match a given parser.

func NewMatchError

func NewMatchError(reason string) MatchError

NewMatchError creates a new MatchError object

func (MatchError) Error

func (m MatchError) Error() string

type UnknownTokenError

type UnknownTokenError struct {
	Token string
	Msg   string
}

UnknownTokenError represents an unknown token that was found when parsing the expression

func (UnknownTokenError) Error

func (e UnknownTokenError) Error() string

Jump to

Keyboard shortcuts

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