Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 211 for parsego (0.17 sec)

  1. src/cmd/cgo/ast.go

    // license that can be found in the LICENSE file.
    
    // Parse input AST and prepare Prog structure.
    
    package main
    
    import (
    	"fmt"
    	"go/ast"
    	"go/format"
    	"go/parser"
    	"go/scanner"
    	"go/token"
    	"os"
    	"strings"
    )
    
    func parse(name string, src []byte, flags parser.Mode) *ast.File {
    	ast1, err := parser.ParseFile(fset, name, src, flags)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jun 07 16:54:27 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  2. src/text/template/parse/parse.go

    	case *WithNode:
    	default:
    		panic("unknown node: " + n.String())
    	}
    	return false
    }
    
    // parse is the top-level parser for a template, essentially the same
    // as itemList except it also parses {{define}} actions.
    // It runs to EOF.
    func (t *Tree) parse() {
    	t.Root = t.newList(t.peek().pos)
    	for t.peek().typ != itemEOF {
    		if t.peek().typ == itemLeftDelim {
    			delim := t.next()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  3. pkg/util/iptables/testing/parse.go

    var ipTablesValuePtrType = reflect.TypeOf((*IPTablesValue)(nil))
    
    // ParseRule parses rule. If strict is false, it will parse the recognized
    // parameters and ignore unrecognized ones. If it is true, parsing will fail if there are
    // unrecognized parameters.
    func ParseRule(rule string, strict bool) (*Rule, error) {
    	parsed := &Rule{Raw: rule}
    
    	// Split rule into "words" (where a quoted string is a single word).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 11.6K bytes
    - Viewed (0)
  4. src/go/doc/comment/parse.go

    	if isStdPkg(name) {
    		return name, true
    	}
    	return "", false
    }
    
    // Parse parses the doc comment text and returns the *[Doc] form.
    // Comment markers (/* // and */) in the text must have already been removed.
    func (p *Parser) Parse(text string) *Doc {
    	lines := unindent(strings.Split(text, "\n"))
    	d := &parseDoc{
    		Parser:    p,
    		Doc:       new(Doc),
    		links:     make(map[string]*LinkDef),
    		lines:     lines,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 33.5K bytes
    - Viewed (0)
  5. src/crypto/x509/parser.go

    				return errors.New("x509: SAN uniformResourceIdentifier is malformed")
    			}
    			uri, err := url.Parse(uriStr)
    			if err != nil {
    				return fmt.Errorf("x509: cannot parse URI %q: %s", uriStr, err)
    			}
    			if len(uri.Host) > 0 {
    				if _, ok := domainToReverseLabels(uri.Host); !ok {
    					return fmt.Errorf("x509: cannot parse URI %q: invalid domain", uriStr)
    				}
    			}
    			uris = append(uris, uri)
    		case nameTypeIP:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  6. src/html/template/template.go

    	return template.IsTrue(val)
    }
    
    // ParseFS is like [ParseFiles] or [ParseGlob] but reads from the file system fs
    // instead of the host operating system's file system.
    // It accepts a list of glob patterns.
    // (Note that most file names serve as glob patterns matching only themselves.)
    func ParseFS(fs fs.FS, patterns ...string) (*Template, error) {
    	return parseFS(nil, fs, patterns)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 21:00:46 UTC 2024
    - 17K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/PomReader.java

    import static org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomDomParser.AddDTDFilterInputStream;
    import static org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomDomParser.getAllChilds;
    import static org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomDomParser.getFirstChildElement;
    import static org.gradle.api.internal.artifacts.ivyservice.ivyresolve.parser.PomDomParser.getFirstChildText;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 15:53:23 UTC 2024
    - 30K bytes
    - Viewed (0)
  8. src/text/template/multi_test.go

    	}
    }
    
    func TestAddParseTree(t *testing.T) {
    	// Create some templates.
    	root, err := New("root").Parse(cloneText1)
    	if err != nil {
    		t.Fatal(err)
    	}
    	_, err = root.Parse(cloneText2)
    	if err != nil {
    		t.Fatal(err)
    	}
    	// Add a new parse tree.
    	tree, err := parse.Parse("cloneText3", cloneText3, "", "", nil, builtins())
    	if err != nil {
    		t.Fatal(err)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 08 10:48:29 UTC 2022
    - 11.7K bytes
    - Viewed (0)
  9. src/cmd/vendor/golang.org/x/text/internal/language/parse.go

    	}
    	s.done = true
    	return end
    }
    
    // acceptMinSize parses multiple tokens of the given size or greater.
    // It returns the end position of the last token consumed.
    func (s *scanner) acceptMinSize(min int) (end int) {
    	end = s.end
    	s.scan()
    	for ; len(s.token) >= min; s.scan() {
    		end = s.end
    	}
    	return end
    }
    
    // Parse parses the given BCP 47 string and returns a valid Tag. If parsing
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  10. src/go/internal/gccgoimporter/parser.go

    }
    
    func (p *parser) error(err any) {
    	if s, ok := err.(string); ok {
    		err = errors.New(s)
    	}
    	// panic with a runtime.Error if err is not an error
    	panic(importError{p.scanner.Pos(), err.(error)})
    }
    
    func (p *parser) errorf(format string, args ...any) {
    	p.error(fmt.Errorf(format, args...))
    }
    
    func (p *parser) expect(tok rune) string {
    	lit := p.lit
    	if p.tok != tok {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 02 23:14:07 UTC 2024
    - 31.2K bytes
    - Viewed (0)
Back to top