example

package
v1.16.1 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type A1 added in v1.16.0

type A1 struct{}

type And

type And []WherePredicate

type B2 added in v1.16.0

type B2 struct{}

type Boat

type Boat struct{}

type Branch

type Branch struct{ L, R Tree }

type C3 added in v1.16.0

type C3 struct{}

type Car

type Car struct{}

type Eq

type Eq struct{ V interface{} }

type Leaf

type Leaf struct{ Value int }

type Lit added in v1.1.0

type Lit struct{ V int }

type MatchAlphabetNumberTuple added in v1.16.0

type MatchAlphabetNumberTuple[T0 Alphabet, T1 Number] interface {
	Match1(x *A1, y *N0)
	Match2(x *C3, y any)
	Match3(x, y any)
}

type Mul added in v1.1.0

type Mul struct{ Left, Right Calc }

type MyTriesMatch added in v1.16.0

type MyTriesMatch[T0, T1 Tree] interface {
	MatchLeafs(*Leaf, *Leaf)
	MatchBranches(*Branch, any)
	MatchMixed(any, any)
}

type N0 added in v1.16.0

type N0 struct{}

type N1 added in v1.16.0

type N1 struct{}

type One added in v1.9.0

type One struct{}

type Or

type Or []WherePredicate

type Path

type Path struct {
	Parts     []string
	Condition WherePredicate
	Then      []WherePredicate
	X         Eq
	Y         map[string]WherePredicate
}

type Plane

type Plane struct{}

type Sum added in v1.1.0

type Sum struct{ Left, Right Calc }

Directories

Path Synopsis
Package ast defines the AST for simple language AST can be created either by parser or by hand, it's up to implementer to decide how to create AST This package provides few examples of AST creation mostly by parsing JSON - ast_sugar.go - ast_human_friendly.go - ast_description_of_best_result Much more advance parser is also possible, but it's not implemented here
Package ast defines the AST for simple language AST can be created either by parser or by hand, it's up to implementer to decide how to create AST This package provides few examples of AST creation mostly by parsing JSON - ast_sugar.go - ast_human_friendly.go - ast_description_of_best_result Much more advance parser is also possible, but it's not implemented here

Jump to

Keyboard shortcuts

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