dfa

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Match

type Match struct {
	RuleID string
	Weight int64
}

type Matcher

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

func New

func New(rules []Rule) *Matcher

func (*Matcher) FindAll

func (m *Matcher) FindAll(text string) []Match

func (*Matcher) NodeCount

func (m *Matcher) NodeCount() int

func (*Matcher) RuleCount

func (m *Matcher) RuleCount() int

type Rule

type Rule struct {
	ID     string
	Weight int64
	Token  string
}

Jump to

Keyboard shortcuts

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