Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Operator ¶
type Operator interface {
IsUnary() bool
IsBinary() bool
EvaluatesBefore(Operator) bool
Precedence() int
IsSentinel() bool
Symbol() string
}
var Sentinel Operator = NewWithDefault("S", 0)
func NewWithDefault ¶
type OperatorImpl ¶
type OperatorImpl struct {
// contains filtered or unexported fields
}
func (OperatorImpl) EvaluatesBefore ¶
func (thisOp OperatorImpl) EvaluatesBefore(other Operator) bool
func (OperatorImpl) IsBinary ¶
func (o OperatorImpl) IsBinary() bool
func (OperatorImpl) IsSentinel ¶
func (o OperatorImpl) IsSentinel() bool
func (OperatorImpl) IsUnary ¶
func (o OperatorImpl) IsUnary() bool
func (OperatorImpl) Precedence ¶
func (o OperatorImpl) Precedence() int
func (OperatorImpl) Symbol ¶
func (o OperatorImpl) Symbol() string
type ShuntingYardState ¶
func NewShuntingYardState ¶
func NewShuntingYardState[T any]() ShuntingYardState[T]
Click to show internal directories.
Click to hide internal directories.