- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 33 for lex (0.06 sec)
-
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/ProgramParser.kt
} private fun programFor(source: ProgramSource, kind: ProgramKind, target: ProgramTarget): Packaged<Program> { val topLevelBlockIds = TopLevelBlockId.topLevelBlockIdFor(target) return lex(source.text, *topLevelBlockIds).map { (comments, annotations, topLevelBlocks) -> checkForSingleBlocksOf(topLevelBlockIds, topLevelBlocks) checkForTopLevelBlockOrder(topLevelBlocks)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 6.3K bytes - Viewed (0) -
src/cmd/asm/internal/asm/operand_test.go
// license that can be found in the LICENSE file. package asm import ( "internal/buildcfg" "strings" "testing" "cmd/asm/internal/arch" "cmd/asm/internal/lex" "cmd/internal/obj" ) // A simple in-out test: Do we print what we parse? func setArch(goarch string) (*arch.Arch, *obj.Link) { buildcfg.GOOS = "linux" // obj can handle this OS for all architectures.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 23.9K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/Lexer.kt
val annotations: List<IntRange>, val topLevelBlocks: List<TopLevelBlock> ) /** * Returns the comments and [top-level blocks][topLevelBlockIds] found in the given [script]. */ internal fun lex(script: String, vararg topLevelBlockIds: TopLevelBlockId): Packaged<LexedScript> { var packageName: String? = null val comments = mutableListOf<IntRange>() val annotations = mutableListOf<IntRange>()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 9.4K bytes - Viewed (0) -
src/cmd/asm/internal/lex/lex_test.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package lex import ( "strings" "testing" "text/scanner" ) type lexTest struct { name string input string output string } var lexTests = []lexTest{ { "empty", "", "", }, { "simple", "1 (a)", "1.(.a.)", },
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 5.8K bytes - Viewed (0) -
tools/docker-builder/dockerfile/parse.go
copies map[string]string // copies stores a map of destination path -> source path user string workdir string base string entrypoint []string cmd []string shlex *shell.Lex } func cut(s, sep string) (before, after string) { if i := strings.Index(s, sep); i >= 0 { return s[:i], s[i+len(sep):] } return s, "" } // Parse parses the provided Dockerfile with the given args
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 5.8K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/labels/selector_test.go
{"", EndOfStringToken}, {",", CommaToken}, {"notin", NotInToken}, {"in", InToken}, {"=", EqualsToken}, {"==", DoubleEqualsToken}, {">", GreaterThanToken}, {"<", LessThanToken}, //Note that Lex returns the longest valid token found {"!", DoesNotExistToken}, {"!=", NotEqualsToken}, {"(", OpenParToken}, {")", ClosedParToken}, //Non-"special" characters are considered part of an identifier
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Nov 14 16:39:04 UTC 2022 - 29.9K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/labels/selector.go
func (l *Lexer) skipWhiteSpaces(ch byte) byte { for { if !isWhitespace(ch) { return ch } ch = l.read() } } // Lex returns a pair of Token and the literal // literal is meaningfull only for IdentifierToken token func (l *Lexer) Lex() (tok Token, lit string) { switch ch := l.skipWhiteSpaces(l.read()); { case ch == 0: return EndOfStringToken, "" case isSpecialSymbol(ch): l.unread()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 18 04:27:38 UTC 2022 - 31.8K bytes - Viewed (0) -
src/cmd/asm/internal/lex/input.go
// Copyright 2015 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package lex import ( "fmt" "os" "path/filepath" "strconv" "strings" "text/scanner" "cmd/asm/internal/flags" "cmd/internal/objabi" "cmd/internal/src" ) // Input is the main input: a stack of readers and some macro definitions.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 12.6K bytes - Viewed (0) -
src/cmd/compile/internal/noder/noder.go
func (p *noder) error(err error) { p.err <- err.(syntax.Error) } // pragmas that are allowed in the std lib, but don't have // a syntax.Pragma value (see lex.go) associated with them. var allowedStdPragmas = map[string]bool{ "go:cgo_export_static": true, "go:cgo_export_dynamic": true, "go:cgo_import_static": true, "go:cgo_import_dynamic": true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Oct 11 20:40:57 UTC 2023 - 12.5K bytes - Viewed (0) -
src/cmd/compile/internal/ssa/compile.go
// // Special cases that have turned out to be useful: // - ssa/check/on enables checking after each phase // - ssa/all/time enables time reporting for all phases // // See gc/lex.go for dissection of the option string. // Example uses: // // GO_GCFLAGS=-d=ssa/generic_cse/time,ssa/generic_cse/stats,ssa/generic_cse/debug=3 ./make.bash //
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 22 14:55:18 UTC 2024 - 18.6K bytes - Viewed (0)