exp

package
v0.0.0-...-90603f3 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2018 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseFunctionArguments

func ParseFunctionArguments(in string) ([]string, error)

Types

type And

type And struct {
	*BinaryOperator
}

func (And) Map

func (a And) Map() map[string]interface{}

func (And) Sgol

func (a And) Sgol() string

type Attribute

type Attribute struct {
	Name string
}

func (Attribute) Map

func (a Attribute) Map() map[string]interface{}

func (Attribute) Sgol

func (a Attribute) Sgol() string

type BinaryOperator

type BinaryOperator struct {
	Left  Node
	Right Node
}

type Function

type Function struct {
	Name      string   `json:"name" bson:"name" yaml:"name" hcl:"name"`
	Arguments []string `json:"arguments" bson:"arguments" yaml:"arguments" hcl:"arguments"`
}

func (Function) Map

func (f Function) Map() map[string]interface{}

func (Function) Sgol

func (f Function) Sgol() string

type GreaterThan

type GreaterThan struct {
	*BinaryOperator
}

func (GreaterThan) Map

func (gt GreaterThan) Map() map[string]interface{}

func (GreaterThan) Sgol

func (gt GreaterThan) Sgol() string

type GreaterThanOrEqual

type GreaterThanOrEqual struct {
	*BinaryOperator
}

func (GreaterThanOrEqual) Map

func (gte GreaterThanOrEqual) Map() map[string]interface{}

func (GreaterThanOrEqual) Sgol

func (gte GreaterThanOrEqual) Sgol() string

type ILike

type ILike struct {
	*BinaryOperator
}

func (ILike) Map

func (i ILike) Map() map[string]interface{}

func (ILike) Sgol

func (i ILike) Sgol() string

type In

type In struct {
	*BinaryOperator
}

func (In) Map

func (i In) Map() map[string]interface{}

func (In) Sgol

func (i In) Sgol() string

type LessThan

type LessThan struct {
	*BinaryOperator
}

func (LessThan) Map

func (lt LessThan) Map() map[string]interface{}

func (LessThan) Sgol

func (lt LessThan) Sgol() string

type LessThanOrEqual

type LessThanOrEqual struct {
	*BinaryOperator
}

func (LessThanOrEqual) Map

func (lte LessThanOrEqual) Map() map[string]interface{}

func (LessThanOrEqual) Sgol

func (lte LessThanOrEqual) Sgol() string

type Like

type Like struct {
	*BinaryOperator
}

func (Like) Map

func (l Like) Map() map[string]interface{}

func (Like) Sgol

func (l Like) Sgol() string

type Literal

type Literal struct {
	Value string
}

func (Literal) Map

func (l Literal) Map() map[string]interface{}

func (Literal) Sgol

func (l Literal) Sgol() string

type Node

type Node interface {
	Sgol() string
	Map() map[string]interface{}
}

func Parse

func Parse(in string) (Node, error)

func ParseAttribute

func ParseAttribute(in string) (Node, error)

func ParseFunction

func ParseFunction(s string, remainder string, re *regexp.Regexp) (Node, error)

func ParseSub

func ParseSub(s string, remainder string) (Node, error)

func ParseValue

func ParseValue(s string, remainder string) (Node, error)

type Not

type Not struct {
	*UnaryOperator
}

func (Not) Map

func (n Not) Map() map[string]interface{}

func (Not) Sgol

func (n Not) Sgol() string

type Or

type Or struct {
	*BinaryOperator
}

func (Or) Map

func (o Or) Map() map[string]interface{}

func (Or) Sgol

func (o Or) Sgol() string

type UnaryOperator

type UnaryOperator struct {
	Node Node
}

Jump to

Keyboard shortcuts

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