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[parser.Associativity]
CanStartWithSep InterfaceDiff[bool]
CanEndWithSep InterfaceDiff[bool]
}
type GrammarDiff ¶
type GrammarDiff struct {
OnlyInA []parser.Rule
OnlyInB []parser.Rule
Prods map[parser.Rule]TermDiff
}
func Grammars ¶ added in v0.21.0
func Grammars(a, b parser.Grammar) GrammarDiff
func (GrammarDiff) Equal ¶
func (d GrammarDiff) Equal() bool
type InterfaceDiff ¶
type InterfaceDiff[T comparable] struct { A, B T }
func (InterfaceDiff[T]) Equal ¶
func (d InterfaceDiff[T]) Equal() bool
type NamedDiff ¶
type NamedDiff struct {
Name InterfaceDiff[string]
Term TermDiff
}
type NodeDiff ¶
func NewNodeDiff ¶
type QuantDiff ¶
type QuantDiff struct {
Term TermDiff
Min InterfaceDiff[int]
Max InterfaceDiff[int]
}
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 TypesDiffer ¶
type TypesDiffer[T comparable] struct { InterfaceDiff[T] }
func (TypesDiffer[T]) Equal ¶
func (d TypesDiffer[T]) Equal() bool
Click to show internal directories.
Click to hide internal directories.