regexp

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GenerateRegExpResult

type GenerateRegExpResult struct {
	Imports map[string]bool
	Vars    codegen.Node
	Code    codegen.Node
}

type GenerateTransitionsUsingBinarySearchResult

type GenerateTransitionsUsingBinarySearchResult struct {
	Lookup codegen.Node
	Next   codegen.Node
	Code   codegen.Node
}

func GenerateTransitionsUsingBinarySearch

func GenerateTransitionsUsingBinarySearch(bySource *automatons.RuneRangeTargetsMapping, source int, tokenName string, imports map[string]bool, deadState int) GenerateTransitionsUsingBinarySearchResult

type Regexp

type Regexp interface {
	FindStringIndex(s string) (loc []int)
}

func Compile

func Compile(pattern string) (Regexp, error)

func MustCompile

func MustCompile(pattern string) Regexp

type RegexpImpl

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

func (*RegexpImpl) FindStringIndex

func (r *RegexpImpl) FindStringIndex(s string) (loc []int)

func (*RegexpImpl) GenerateRegExp

func (r *RegexpImpl) GenerateRegExp(funcName string, tokenName string) GenerateRegExpResult

func (*RegexpImpl) GetStartChars

func (r *RegexpImpl) GetStartChars() *automatons.RuneSet

func (RegexpImpl) String

func (re RegexpImpl) String() string

Directories

Path Synopsis
setup command

Jump to

Keyboard shortcuts

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