Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultBinaryTreeTraversal = &Option{ Filter: func(node ast.Evaluable) bool { _, ok := node.(*ast.BinaryOperationExpr) return ok }, } )
Functions ¶
This section is empty.
Types ¶
type BfsIterator ¶
type BfsIterator interface {
Iterator
}
func NewBfsIterator ¶
func NewBfsIterator(root ast.Evaluable) BfsIterator
type DfsIterator ¶
type DfsIterator interface {
Iterator
}
func NewDfsIterator ¶
func NewDfsIterator(root ast.Evaluable, opts ...*Option) DfsIterator
NewDfsIterator returns a preorder traversal iterator
type PostOrderIterator ¶
type PostOrderIterator interface {
Iterator
NextWithMutParent() (next ast.Evaluable, parent *ast.Evaluable, childIdx int)
}
func NewPostOrderIterator ¶
func NewPostOrderIterator(root *ast.Evaluable, opts ...*Option) PostOrderIterator
Click to show internal directories.
Click to hide internal directories.