Documentation
¶
Overview ¶
Package canonical implements canonical expressions that can be compared to one another.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Canonical ¶
type Canonical interface {
Comparable
fmt.Stringer
}
Canonical is a canonical expression.
type Comparable ¶
type Comparable interface {
Compare(x Comparable) bool
}
Comparable defines an interface for comparing an expression against another.
type Simplifier ¶
type Simplifier interface {
Canonical
Simplify() Simplifier
}
Simplifier is an expression that can be simplified.
func FromBinary ¶
func FromBinary(op token.Token, x, y Canonical) Simplifier
FromBinary returns a canonical expression from a binary expression.
Click to show internal directories.
Click to hide internal directories.