dfa

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2020 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package dfa implements a caching DFA regexp matcher.

Index

Constants

View Source
const DebugDFA = false

Variables

View Source
var DebugPrintf = func(format string, a ...interface{}) {}

Functions

This section is empty.

Types

type DFA

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

type Searcher

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

func (*Searcher) Init

func (s *Searcher) Init(prog *syntax.Prog, expr *syntax.Regexp, p input.Prefixer)

func (*Searcher) Search

func (s *Searcher) Search(i input.Input, pos int, longest bool, matchcap *[]int, ncap int) (bool, error)

type State

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

func (*State) Dump

func (s *State) Dump() string

Jump to

Keyboard shortcuts

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