test

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch

func Branch(nodes ...interface{}) *cst.Branch

func Fragment

func Fragment(tok string) cst.Fragment

func Leaf

func Leaf(v string) cst.Node

func Node

func Node(prefix interface{}, v interface{}, suffix interface{}) cst.Node

func Peek

func Peek(r *parse.Reader, value string) bool

func Separator

func Separator(list ...interface{}) cst.Separator

func Token

func Token(value string) cst.Token

func Value

func Value(v interface{}) interface{}

func VerifyFragmentTokens

func VerifyFragmentTokens(ctx context.Context, f cst.Fragment, next *int)

func VerifyNodeTokens

func VerifyNodeTokens(ctx context.Context, n cst.Node, next *int)

func VerifyTokens

func VerifyTokens(ctx context.Context, got cst.Node)

Types

type ArrayNode

type ArrayNode ListNode

func Array

func Array(values ...interface{}) *ArrayNode

func (*ArrayNode) Parser

func (n *ArrayNode) Parser(p *parse.Parser) parse.BranchParser

type CallNode

type CallNode struct {
	// contains filtered or unexported fields
}

func Call

func Call(name string, values ...interface{}) *CallNode

func (*CallNode) Parser

func (n *CallNode) Parser(p *parse.Parser) parse.BranchParser

type ListNode

type ListNode []interface{}

func List

func List(values ...interface{}) *ListNode

func (*ListNode) Parser

func (n *ListNode) Parser(p *parse.Parser) parse.BranchParser

type NumberNode

type NumberNode uint64

func (*NumberNode) Consumer

func (n *NumberNode) Consumer(p *parse.Parser) parse.LeafParser

type ValueNode

type ValueNode string

func (*ValueNode) Consumer

func (n *ValueNode) Consumer(p *parse.Parser) parse.LeafParser

func (*ValueNode) Parse

func (n *ValueNode) Parse(p *parse.Parser) func(l *cst.Leaf)

Jump to

Keyboard shortcuts

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