Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMatchError ¶
IsMatchError returns true if err is a MatchError, false otherwise.
func IsSyntaxError ¶
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 ¶
UnknownTokenError represents an unknown token that was found when parsing the expression
func (UnknownTokenError) Error ¶
func (e UnknownTokenError) Error() string
Click to show internal directories.
Click to hide internal directories.