Documentation ¶
Index ¶
- Constants
- Variables
- func PrintTree(n *Node, depth int)
- type Edge
- type Factor
- type FactorTuple
- func Alternate(x, y FactorTuple) FactorTuple
- func Analyze(re *syntax.Regexp) FactorTuple
- func Concatinate(x, y FactorTuple) (xy FactorTuple)
- func NewFactorTuple() FactorTuple
- func NewFactorTupleAnyChar() FactorTuple
- func NewFactorTupleEmptyString() FactorTuple
- func NewFactorTupleLiteral(str string) FactorTuple
- func NewFactorTupleUndef() FactorTuple
- type Node
- type Op
- type StrageType
Constants ¶
View Source
const (
TolerateCharClassCount = 100
)
Variables ¶
View Source
var (
RegexpOpCodeTable = []string{
"", "NoMatch", "EmptyMatch", "Literal", "CC",
"AnyCharNL", "AnyChar", "^", "$", "\\A", "$",
"\\b", "\\B", "()", "*", "+", "?", "RT", "・", "|",
}
)
Functions ¶
Types ¶
type FactorTuple ¶
type FactorTuple struct {
Exact, Pref, Suff, Frag Factor
}
func Alternate ¶
func Alternate(x, y FactorTuple) FactorTuple
func Analyze ¶
func Analyze(re *syntax.Regexp) FactorTuple
func Concatinate ¶
func Concatinate(x, y FactorTuple) (xy FactorTuple)
func NewFactorTuple ¶
func NewFactorTuple() FactorTuple
func NewFactorTupleAnyChar ¶
func NewFactorTupleAnyChar() FactorTuple
func NewFactorTupleEmptyString ¶
func NewFactorTupleEmptyString() FactorTuple
func NewFactorTupleLiteral ¶
func NewFactorTupleLiteral(str string) FactorTuple
func NewFactorTupleUndef ¶
func NewFactorTupleUndef() FactorTuple
func (FactorTuple) String ¶
func (f FactorTuple) String() string
func (FactorTuple) Undef ¶
func (f FactorTuple) Undef() bool
type Node ¶
type Node struct { Regexp *syntax.Regexp Child []*Node Factor FactorTuple Internal bool }
type StrageType ¶
type StrageType map[string]struct{}
Click to show internal directories.
Click to hide internal directories.