test

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Branch

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

func Fragment

func Fragment(tok string) parse.Fragment

func Leaf

func Leaf(v string) parse.Node

func Node

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

func Peek

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

func Separator

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

func Token

func Token(value string) parse.Token

func Value

func Value(v interface{}) interface{}

func VerifyFragmentTokens

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

func VerifyNodeTokens

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

func VerifyTokens

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

Types

type ArrayNode

type ArrayNode ListNode

func Array

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

func (*ArrayNode) Parse

func (n *ArrayNode) Parse(p *parse.Parser, cst *parse.Branch)

type CallNode

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

func Call

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

func (*CallNode) Parse

func (n *CallNode) Parse(p *parse.Parser, cst *parse.Branch)

type ListNode

type ListNode []interface{}

func List

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

func (*ListNode) Parse

func (n *ListNode) Parse(p *parse.Parser, cst *parse.Branch)

type NumberNode

type NumberNode uint64

func (*NumberNode) Consume

func (n *NumberNode) Consume(p *parse.Parser, l *parse.Leaf)

type ValueNode

type ValueNode string

func (*ValueNode) Consume

func (n *ValueNode) Consume(p *parse.Parser, l *parse.Leaf)

func (*ValueNode) Parse

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

Jump to

Keyboard shortcuts

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