Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for InstAltMatch (0.12 sec)

  1. src/regexp/onepass.go

    }
    
    // onePassNext selects the next actionable state of the prog, based on the input character.
    // It should only be called when i.Op == InstAlt or InstAltMatch, and from the one-pass machine.
    // One of the alternates may ultimately lead without input to end of line. If the instruction
    // is InstAltMatch the path to the InstMatch is in i.Out, the normal node in i.Next.
    func onePassNext(i *onePassInst, r rune) uint32 {
    	next := i.MatchRunePos(r)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  2. src/regexp/exec.go

    	d.t = nil
    	d.pc = pc
    	q.sparse[pc] = uint32(j)
    
    	i := &m.p.Inst[pc]
    	switch i.Op {
    	default:
    		panic("unhandled")
    	case syntax.InstFail:
    		// nothing
    	case syntax.InstAlt, syntax.InstAltMatch:
    		t = m.add(q, i.Out, pos, cap, cond, t)
    		pc = i.Arg
    		goto Again
    	case syntax.InstEmptyWidth:
    		if cond.match(syntax.EmptyOp(i.Arg)) {
    			pc = i.Out
    			goto Again
    		}
    	case syntax.InstNop:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Jun 04 20:10:54 UTC 2022
    - 12.3K bytes
    - Viewed (0)
Back to top