Lines Matching defs:machine
37 type machine struct { struct
38 re *Regexp // corresponding Regexp
39 p *syntax.Prog // compiled program
40 op *onePassProg // compiled onepass program, or notOnePass
41 maxBitStateLen int // max length of string to search with bitstate
42 b *bitState // state for backtracker, allocated lazily
43 q0, q1 queue // two queues for runq, nextq
44 pool []*thread // pool of available threads
45 matched bool // whether a match was found
46 matchcap []int // capture information for the match
49 inputBytes inputBytes
50 inputString inputString
51 inputReader inputReader
54 func (m *machine) newInputBytes(b []byte) input {
59 func (m *machine) newInputString(s string) input {
64 func (m *machine) newInputReader(r io.RuneReader) input {
88 func (m *machine) init(ncap int) {
97 func (m *machine) alloc(i *syntax.Inst) *thread {
113 func (m *machine) match(i input, pos int) bool {
184 func (m *machine) clear(q *queue) {
198 func (m *machine) step(runq, nextq *queue, pos, nextPos int, c rune, nextCond syntax.EmptyOp) {
255 …(m *machine) add(q *queue, pc uint32, pos int, cap []int, cond syntax.EmptyOp, t *thread) *thread {
313 func (m *machine) onepass(i input, pos, ncap int) bool {