parser

package
v0.0.0-...-568b5cd Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package parser provides a parser for Objective-C NSPredicate.

Index

Constants

View Source
const (
	FlgCaseInsensitive      = "c"
	FlgDiacriticInsensitive = "d"
)
View Source
const (
	Name   = "nspredicate_go"
	Author = "Hasuzawa"
)

Variables

View Source
var (
	Version = version.Versioning{
		Major: 0,
		Minor: 1,
		Patch: 0,
	}.String()
)

Functions

This section is empty.

Types

type ExprNode

type ExprNode struct {
	Left     Node
	Operator Operator
	Right    Node
}

func (*ExprNode) Eval

func (n *ExprNode) Eval() string

type Node

type Node interface {
	Eval() string
}

type Operator

type Operator struct {
	token.Token
	CaseInsensitive      bool
	DiacriticInsensitive bool
}

func (Operator) String

func (o Operator) String() string

type StmtNode

type StmtNode struct {
	Left  Node
	Token token.Token
	Right Node
}

func (*StmtNode) Eval

func (n *StmtNode) Eval() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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