ast

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package ast provides the log query language abstract syntax tree.

Index

Constants

View Source
const (
	LNOT Op = "not"
	NOT     = "!"
	IN      = "in"
	OR      = "||"
	AND     = "&&"
	NE      = "!="
	EQ      = "="
	GT      = ">"
	LT      = "<"
	GE      = ">="
	LE      = "<="
)

Op types.

Variables

This section is empty.

Functions

This section is empty.

Types

type Binary

type Binary struct {
	Op    Op
	Left  Node
	Right Node
}

Binary node.

func (Binary) String

func (n Binary) String() string

String implementation.

type Contains

type Contains struct {
	Node Node
}

Contains node.

func (Contains) String

func (n Contains) String() string

String implementation.

type Expr

type Expr struct {
	Node Node
}

Expr node.

func (Expr) String

func (n Expr) String() string

String implementation.

type Field

type Field string

Field node.

func (Field) String

func (n Field) String() string

String implementation.

type Literal

type Literal string

Literal node.

func (Literal) String

func (n Literal) String() string

String implementation.

type Member

type Member struct {
	Left  Node
	Right Node
}

Member node.

func (Member) String

func (n Member) String() string

String implementation.

type Node

type Node interface {
	String() string
}

Node interface.

type Number

type Number struct {
	Value float64
	Unit  string
}

Number node.

func (Number) String

func (n Number) String() string

String implementation.

type Op

type Op string

Op type.

type Property

type Property string

Property node.

func (Property) String

func (n Property) String() string

String implementation.

type Root

type Root struct {
	Node Node
}

Root node.

func (Root) String

func (n Root) String() string

String implementation.

type String

type String string

String node.

func (String) String

func (n String) String() string

String implementation.

type Subscript

type Subscript struct {
	Left  Node
	Right Node
}

Subscript node.

func (Subscript) String

func (n Subscript) String() string

String implementation.

type Tuple

type Tuple []Node

Tuple node.

func (Tuple) String

func (n Tuple) String() string

String implementation.

type Unary

type Unary struct {
	Op    Op
	Right Node
}

Unary node.

func (Unary) String

func (n Unary) String() string

String implementation.

Jump to

Keyboard shortcuts

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