Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 78 for Tok (0.02 sec)

  1. src/go/build/constraint/expr.go

    		p.lex()
    		return x
    	}
    
    	if !p.isTag {
    		if p.tok == "" {
    			panic(&SyntaxError{Offset: p.pos, Err: "unexpected end of expression"})
    		}
    		panic(&SyntaxError{Offset: p.pos, Err: "unexpected token " + p.tok})
    	}
    	tok := p.tok
    	p.lex()
    	return tag(tok)
    }
    
    // lex finds and consumes the next token in the input stream.
    // On return, p.tok is set to the token text,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 14.2K bytes
    - Viewed (0)
  2. maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoDescriptorCreator.java

                plugin = new Plugin();
                plugin.setGroupId(tok[0]);
                plugin.setArtifactId(tok[1]);
                plugin.setVersion(tok[2]);
                goal = tok[3];
    
                // This won't be valid, but it constructs something easy to read in the error message
                for (int idx = 4; idx < tok.length; idx++) {
                    goal += ":" + tok[idx];
                }
            } else if (numTokens == 3) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Jan 10 12:55:54 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. src/internal/dag/parse.go

    func (p *rulesParser) nextList() (list []string, token string) {
    	for {
    		tok := p.nextToken()
    		switch tok {
    		case "":
    			if len(list) == 0 {
    				return nil, ""
    			}
    			fallthrough
    		case ",", "<", "!<", ";":
    			p.syntaxError("bad list syntax")
    		}
    		list = append(list, tok)
    
    		tok = p.nextToken()
    		if tok != "," {
    			return list, tok
    		}
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  4. maven-artifact/src/main/java/org/apache/maven/artifact/versioning/DefaultArtifactVersion.java

                    if (minorVersion == null) {
                        fallback = true;
                    }
                }
                if (idx < tok.length) {
                    incrementalVersion = getNextIntegerToken(tok[idx++]);
                    if (incrementalVersion == null) {
                        fallback = true;
                    }
                }
                if (idx < tok.length) {
                    qualifier = tok[idx++];
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Nov 17 15:50:51 UTC 2023
    - 6K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/mod/modfile/read.go

    			}
    		}
    	}
    }
    
    func (in *input) parseStmt() {
    	tok := in.lex()
    	start := tok.pos
    	end := tok.endPos
    	tokens := []string{tok.text}
    	for {
    		tok := in.lex()
    		switch {
    		case tok.kind.isEOL():
    			in.file.Stmt = append(in.file.Stmt, &Line{
    				Start: start,
    				Token: tokens,
    				End:   end,
    			})
    			return
    
    		case tok.kind == '(':
    			if next := in.peek(); next.isEOL() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  6. src/internal/trace/raw/textreader.go

    }
    
    func readArg(s string) (arg string, value uint64, rest string, err error) {
    	var tok string
    	tok, rest = readToken(s)
    	if len(tok) == 0 {
    		return "", 0, s, fmt.Errorf("no argument")
    	}
    	parts := strings.SplitN(tok, "=", 2)
    	if len(parts) < 2 {
    		return "", 0, s, fmt.Errorf("malformed argument: %q", tok)
    	}
    	arg = parts[0]
    	value, err = strconv.ParseUint(parts[1], 10, 64)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  7. src/cmd/asm/internal/asm/expr_test.go

    		result := int64(p.expr())
    		if result != test.output {
    			t.Errorf("%d: %q evaluated to %d; expected %d", i, test.input, result, test.output)
    		}
    		tok := p.next()
    		if test.atEOF && tok.ScanToken != scanner.EOF {
    			t.Errorf("%d: %q: at EOF got %s", i, test.input, tok)
    		} else if !test.atEOF && tok.ScanToken == scanner.EOF {
    			t.Errorf("%d: %q: expected not EOF but at EOF", i, test.input)
    		}
    	}
    }
    
    type badExprTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 29 07:48:38 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  8. src/text/scanner/scanner.go

    	RawString: "RawString",
    	Comment:   "Comment",
    }
    
    // TokenString returns a printable string for a token or Unicode character.
    func TokenString(tok rune) string {
    	if s, found := tokenString[tok]; found {
    		return s
    	}
    	return fmt.Sprintf("%q", string(tok))
    }
    
    // GoWhitespace is the default value for the [Scanner]'s Whitespace field.
    // Its value selects Go's white space characters.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  9. src/encoding/xml/xml_test.go

    	m := tokenMap(func(t Token) Token {
    		switch tok := t.(type) {
    		case StartElement:
    			if tok.Name.Local == "quote" {
    				tok.Name.Local = "blocking"
    				return tok
    			}
    		case EndElement:
    			if tok.Name.Local == "quote" {
    				tok.Name.Local = "blocking"
    				return tok
    			}
    		}
    		return t
    	})
    
    	d = NewTokenDecoder(m(d))
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/syntax/printer.go

    		} else {
    			p.printParameterList(list, 0)
    		}
    	}
    }
    
    // If tok != 0 print a type parameter list: tok == _Type means
    // a type parameter list for a type, tok == _Func means a type
    // parameter list for a func.
    func (p *printer) printParameterList(list []*Field, tok token) {
    	open, close := _Lparen, _Rparen
    	if tok != 0 {
    		open, close = _Lbrack, _Rbrack
    	}
    	p.print(open)
    	for i, f := range list {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 24 07:17:27 UTC 2023
    - 21.5K bytes
    - Viewed (0)
Back to top