regexp

package
v0.0.0-...-30fea7a Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2026 License: BSD-3-Clause Imports: 2 Imported by: 1

Documentation

Overview

Package regexp builds regular expressions out of scalable flowgraphs

Index

Constants

This section is empty.

Variables

View Source
var CurrID int64 = 0
View Source
var Modes = map[Mode]string{
	Live: "Live",
	Done: "Done",
	Fail: "Fail",
}

Functions

func FuncBar

func FuncBar(a, b fgbase.Edge, x fgbase.Edge, sink bool) fgbase.Node

FuncBar waits for both inputs and returns the one that matches the shortest string. Returns nil if no match at all.

func FuncMatch

func FuncMatch(a, b fgbase.Edge, x fgbase.Edge, ignoreCase bool) fgbase.Node

FuncMatch advances a byte slice if it matches a string, otherwise returns the empty slice

func FuncRepeat

func FuncRepeat(newmatch, subsrc, dnstreq fgbase.Edge, oldmatch, subdst, upstreq fgbase.Edge, min, max int) fgbase.Node

FuncRepeat repeats a match zero or more times

inputs: newmatch -- new match string subsrc -- fedback result of last match, successful (remainder string) or not (nil) dnstreq -- receive downstream request for new remainder string

outputs: oldmatch -- continue match (remainder string) subdst -- match done, successful (remainder string) or not (nil) upstreq -- send upstream request for new remainder string

func NextID

func NextID() int64

Types

type Mode

type Mode int
const (
	Live Mode = iota
	Done
	Fail
)

func (Mode) String

func (m Mode) String() string
type Search struct {
	Curr  string
	Orig  string
	State Mode
	ID    int64
}

Jump to

Keyboard shortcuts

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