- Sort Score
- Result 10 results
- Languages All
Results 11 - 16 of 16 for lex (0.07 sec)
-
src/go/build/constraint/expr_test.go
} out += tok } if out != tt.out { t.Errorf("lex(%q):\nhave %s\nwant %s", tt.in, out, tt.out) } }) } } func lexHelp(p *exprParser) (tok string, err error) { defer func() { if e := recover(); e != nil { if e, ok := e.(*SyntaxError); ok { err = e return } panic(e) } }() p.lex() return p.tok, nil } var parseExprTests = []struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 18 22:36:55 UTC 2021 - 7.6K bytes - Viewed (0) -
src/cmd/asm/internal/lex/tokenizer.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 ( "go/build/constraint" "io" "os" "strings" "text/scanner" "unicode" "cmd/asm/internal/flags" "cmd/internal/objabi" "cmd/internal/src" ) // A Tokenizer is a simple wrapping of text/scanner.Scanner, configured
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 04 20:35:21 UTC 2022 - 3K bytes - Viewed (0) -
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) -
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)