Lines Matching defs:machine
38 type machine struct { struct
39 re *Regexp // corresponding Regexp
40 p *syntax.Prog // compiled program
41 q0, q1 queue // two queues for runq, nextq
42 pool []*thread // pool of available threads
43 matched bool // whether a match was found
44 matchcap []int // capture information for the match
46 inputs inputs
95 func (m *machine) init(ncap int) {
104 func (m *machine) alloc(i *syntax.Inst) *thread {
175 func (m *machine) match(i input, pos int) bool {
246 func (m *machine) clear(q *queue) {
260 func (m *machine) step(runq, nextq *queue, pos, nextPos int, c rune, nextCond *lazyFlag) {
317 func (m *machine) add(q *queue, pc uint32, pos int, cap []int, cond *lazyFlag, t *thread) *thread {