matcher

package
v0.0.0-...-190864c Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplacePD

ReplacePD takes an expression and replaces any defined symbols in the PDManager with the defined values. It is a form of subsitution common in function evaluation and replacement.

Types

type MatchIter

type MatchIter interface {
	// returns ismatch, pd, isdone
	Next() (bool, *PDManager, bool)
}

type PDManager

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

func EmptyPD

func EmptyPD() *PDManager

func IsMatchQ

IsMatchQ returns if an Ex `a` matches a pattern Ex `b`. If the expression matches the pattern and if the pattern has any named patterns, those matching values will be added to `pm`.

func (*PDManager) Define

func (pm *PDManager) Define(name string, val expreduceapi.Ex)

func (*PDManager) Expression

func (pm *PDManager) Expression() expreduceapi.Ex

Jump to

Keyboard shortcuts

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