- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 22 for tok (0.01 seconds)
-
src/cmd/asm/internal/lex/tokenizer.go
s := t.s for { t.tok = ScanToken(s.Scan()) if t.tok != scanner.Comment { break } text := s.TokenText() t.line += strings.Count(text, "\n") if constraint.IsGoBuild(text) { t.tok = BuildComment break } } switch t.tok { case '\n': t.line++ case '-': if s.Peek() == '>' { s.Next() t.tok = ARR return ARR } case '@':Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Thu Aug 04 20:35:21 GMT 2022 - 3K bytes - Click Count (0) -
impl/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.append(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.append(":").append(tok[idx]); } } else if (numTokens == 3) {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Mar 25 09:45:07 GMT 2025 - 11.3K bytes - Click Count (0) -
src/cmd/asm/internal/asm/parse.go
if tok == '\n' || tok == ';' || (nesting == 0 && (tok == ',' || tok == ':')) { if tok == ':' { // Remember this location so we can swap the operands below. if colon >= 0 { p.errorf("invalid ':' in operand") return word, cond, operands, true } colon = len(operands) } break } if tok == '(' || tok == '[' { nesting++ } if tok == ')' || tok == ']' {Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Nov 12 03:59:40 GMT 2025 - 37.3K bytes - Click Count (0) -
src/cmd/asm/internal/lex/input.go
nesting := 0 var tokens []Token for { tok := in.Stack.Next() if tok == scanner.EOF || tok == '\n' { in.Error("unterminated arg list invoking macro:", macro.name) } if nesting == 0 && (tok == ')' || tok == ',') { return tokens, tok } if tok == '(' { nesting++ } if tok == ')' { nesting-- } tokens = append(tokens, Make(tok, in.Stack.Text())) } }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Wed Nov 12 03:59:40 GMT 2025 - 12.4K bytes - Click Count (0) -
compat/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];
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 6.1K bytes - Click Count (0) -
src/cmd/asm/internal/lex/stack.go
s.tr = append(s.tr, tr) } func (s *Stack) Next() ScanToken { tos := s.tr[len(s.tr)-1] tok := tos.Next() for tok == scanner.EOF && len(s.tr) > 1 { tos.Close() // Pop the topmost item from the stack and resume with the next one down. s.tr = s.tr[:len(s.tr)-1] tok = s.Next() } return tok } func (s *Stack) Text() string { return s.tr[len(s.tr)-1].Text() }
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Mon Jan 09 22:33:23 GMT 2017 - 1.2K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/props/MavenPropertiesLoader.java
StringBuilder tokBuf = new StringBuilder(10); String tok; boolean inQuote = false; boolean tokStarted = false; boolean exit = false; while ((st.hasMoreTokens()) && (!exit)) { tok = st.nextToken(tokenList); switch (tok) { case "\"": inQuote = !inQuote;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 6.4K bytes - Click Count (0) -
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 {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 3.2K bytes - Click Count (0) -
src/cmd/asm/internal/lex/lex_test.go
} // drain returns a single string representing the processed input tokens. func drain(input *Input) string { var buf strings.Builder for { tok := input.Next() if tok == scanner.EOF { return buf.String() } if tok == '#' { continue } if buf.Len() > 0 { buf.WriteByte('.') } buf.WriteString(input.Text()) } } type badLexTest struct {
Created: Tue Dec 30 11:13:12 GMT 2025 - Last Modified: Tue Aug 29 07:48:38 GMT 2023 - 5.8K bytes - Click Count (0) -
compat/maven-embedder/src/main/java/org/apache/maven/cli/props/MavenPropertiesLoader.java
StringBuilder tokBuf = new StringBuilder(10); String tok; boolean inQuote = false; boolean tokStarted = false; boolean exit = false; while ((st.hasMoreTokens()) && (!exit)) { tok = st.nextToken(tokenList); switch (tok) { case "\"": inQuote = !inQuote;
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 24 17:29:44 GMT 2025 - 6.5K bytes - Click Count (0)