- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for progx (0.03 sec)
-
src/regexp/syntax/prog.go
package syntax import ( "strconv" "strings" "unicode" "unicode/utf8" ) // Compiled program. // May not belong in this package, but convenient for now. // A Prog is a compiled regular expression program. type Prog struct { Inst []Inst Start int // index of start instruction NumCap int // number of InstCapture insts in re } // An InstOp is an instruction opcode. type InstOp uint8
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 20:50:01 UTC 2024 - 7.7K bytes - Viewed (0) -
src/time/genzabbrs.go
zs, } var buf bytes.Buffer err = template.Must(template.New("prog").Parse(prog)).Execute(&buf, v) if err != nil { log.Fatal(err) } data, err := format.Source(buf.Bytes()) if err != nil { log.Fatal(err) } err = os.WriteFile(*filename, data, 0644) if err != nil { log.Fatal(err) } } const prog = ` // Copyright 2013 The Go Authors. All rights reserved.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/lazy/lazy_test.go
ast, issues := env.Compile(exp) if issues != nil { return nil, fmt.Errorf("fail to compile: %v", issues) } prog, err := env.Program(ast) if err != nil { return nil, fmt.Errorf("cannot create program: %w", err) } v, _, err := prog.Eval(activation) if err != nil { return nil, fmt.Errorf("cannot eval program: %w", err) } return v, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 10 22:07:40 UTC 2024 - 4.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/cel/compile.go
return resultError("unexpected compilation error: "+err.Error(), apiservercel.ErrorTypeInternal) } prog, err := env.Program(ast) if err != nil { return resultError("program instantiation failed: "+err.Error(), apiservercel.ErrorTypeInternal) } return CompilationResult{ Program: prog, AST: ast, ExpressionAccessor: expressionAccessor, }, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 08 17:59:05 UTC 2024 - 5.3K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/telemetry/internal/upload/run.go
progPkgPath = strings.TrimSuffix(filepath.Base(os.Args[0]), ".exe") } prog := path.Base(progPkgPath) progVers := info.Main.Version if progVers == "(devel)" { // avoid special characters in created file names progVers = "devel" } logBase := strings.ReplaceAll( fmt.Sprintf("%s-%s-%s-%4d%02d%02d-%d.log", prog, progVers, goVers, year, month, day, os.Getpid()), " ", "")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 21:12:15 UTC 2024 - 5.5K bytes - Viewed (0) -
src/os/exec/lp_windows.go
return lookPath(file, pathExt()) } // lookExtensions finds windows executable by its dir and path. // It uses LookPath to try appropriate extensions. // lookExtensions does not search PATH, instead it converts `prog` into `.\prog`. // // If the path already has an extension found in PATHEXT, // lookExtensions returns it directly without searching // for additional extensions. For example,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go
} t.Fatalf("%v", errorStrings) } // Typecheck expression _, err = cel.AstToCheckedExpr(compiled) if err != nil { t.Fatalf("%v", err) } prog, err := env.Program(compiled) if err != nil { t.Fatalf("%v", err) } res, _, err := prog.Eval(map[string]interface{}{}) if len(expectRuntimeErrPattern) > 0 { if err == nil { t.Fatalf("no runtime error thrown. Expected: %v", expectRuntimeErrPattern)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 8.6K bytes - Viewed (0) -
src/regexp/onepass_test.go
{`^.bc(d|e)*$`, true}, {`^(?:(?:aa)|.)$`, false}, {`^(?:(?:a{1,2}){1,2})$`, false}, {`^l` + strings.Repeat("o", 2<<8) + `ng$`, true}, } func TestCompileOnePass(t *testing.T) { var ( p *syntax.Prog re *syntax.Regexp err error ) for _, test := range onePassTests { if re, err = syntax.Parse(test.re, syntax.Perl); err != nil { t.Errorf("Parse(%q) got err:%s, want success", test.re, err)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 25 19:36:03 UTC 2024 - 4.6K bytes - Viewed (0) -
src/cmd/internal/obj/x86/seh.go
// - PUSHQ BP // - MOVQ SP, BP // // If the prologue layout change, the unwind information should be updated // accordingly. // Search for the PUSHQ BP instruction inside the prologue. var pushbp *obj.Prog for p := s.Func().Text; p != nil; p = p.Link { if p.As == APUSHQ && p.From.Type == obj.TYPE_REG && p.From.Reg == REG_BP { pushbp = p break } if p.Pos.Xlogue() == src.PosPrologueEnd { break }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 15 14:41:10 UTC 2024 - 4.6K bytes - Viewed (0)