diff

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DelimDiff

type DelimDiff struct {
	Term            TermDiff
	Sep             TermDiff
	Assoc           InterfaceDiff
	CanStartWithSep InterfaceDiff
	CanEndWithSep   InterfaceDiff
}

func (DelimDiff) Equal

func (d DelimDiff) Equal() bool

type DiffReport

type DiffReport interface {
	Equal() bool
}

type GrammarDiff

type GrammarDiff struct {
	OnlyInA []parser.Rule
	OnlyInB []parser.Rule
	Prods   map[parser.Rule]TermDiff
}

func DiffGrammars

func DiffGrammars(a, b parser.Grammar) GrammarDiff

func (GrammarDiff) Equal

func (d GrammarDiff) Equal() bool

type InterfaceDiff

type InterfaceDiff struct {
	A, B interface{}
}

func (InterfaceDiff) Equal

func (d InterfaceDiff) Equal() bool

type NamedDiff

type NamedDiff struct {
	Name InterfaceDiff
	Term TermDiff
}

func (NamedDiff) Equal

func (d NamedDiff) Equal() bool

type NodeDiff

type NodeDiff struct {
	A, B     *parser.Node
	Children map[int]NodeDiff
	Types    map[int][2]reflect.Type
}

func NewNodeDiff

func NewNodeDiff(a, b *parser.Node) NodeDiff

func (NodeDiff) Equal

func (d NodeDiff) Equal() bool

func (NodeDiff) String

func (d NodeDiff) String() string

type OneofDiff

type OneofDiff termsesDiff

func (OneofDiff) Equal

func (d OneofDiff) Equal() bool

type QuantDiff

type QuantDiff struct {
	Term TermDiff
	Min  InterfaceDiff
	Max  InterfaceDiff
}

func (QuantDiff) Equal

func (d QuantDiff) Equal() bool

type REDiff

type REDiff struct {
	A, B parser.RE
}

func (REDiff) Equal

func (d REDiff) Equal() bool

type RefDiff added in v0.14.0

type RefDiff struct {
	A, B parser.REF
}

func (RefDiff) Equal added in v0.14.0

func (d RefDiff) Equal() bool

type RuleDiff

type RuleDiff struct {
	A, B parser.Rule
}

func (RuleDiff) Equal

func (d RuleDiff) Equal() bool

type SDiff

type SDiff struct {
	A, B parser.S
}

func (SDiff) Equal

func (d SDiff) Equal() bool

type ScopedGrammarDiff added in v0.13.0

type ScopedGrammarDiff struct {
	Term    TermDiff
	Grammar GrammarDiff
}

func (ScopedGrammarDiff) Equal added in v0.13.0

func (d ScopedGrammarDiff) Equal() bool

type SeqDiff

type SeqDiff termsesDiff

func (SeqDiff) Equal

func (d SeqDiff) Equal() bool

type TermDiff

type TermDiff interface {
	DiffReport
}

func DiffTerms

func DiffTerms(a, b parser.Term) TermDiff

type TowerDiff

type TowerDiff termsesDiff

func (TowerDiff) Equal

func (d TowerDiff) Equal() bool

type TypesDiffer

type TypesDiffer struct {
	InterfaceDiff
}

func (TypesDiffer) Equal

func (d TypesDiffer) Equal() bool

Jump to

Keyboard shortcuts

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