- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 33 for lex (0.02 sec)
-
src/go/build/constraint/expr.go
panic(&SyntaxError{Offset: pos, Err: "missing close paren"}) } 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.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 14.2K bytes - Viewed (0) -
platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/execution/TopLevelBlockExtractionTest.kt
} private fun extractBuildscriptBlockFrom(script: String) = lex(script, buildscript).document.topLevelBlocks.singleBlockSectionOrNull()?.wholeRange private fun extractPluginAndPluginManagementBlockFrom(script: String) = lex(script, pluginManagement, plugins).document.topLevelBlocks
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Aug 02 08:06:49 UTC 2023 - 4.8K bytes - Viewed (0) -
src/cmd/asm/main.go
package main import ( "bufio" "flag" "fmt" "internal/buildcfg" "log" "os" "cmd/asm/internal/arch" "cmd/asm/internal/asm" "cmd/asm/internal/flags" "cmd/asm/internal/lex" "cmd/internal/bio" "cmd/internal/obj" "cmd/internal/objabi" "cmd/internal/telemetry" ) func main() { log.SetFlags(0) log.SetPrefix("asm: ") telemetry.Start() buildcfg.Check()
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 14 19:41:17 UTC 2024 - 2.9K bytes - Viewed (0) -
src/cmd/asm/internal/lex/stack.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 ( "text/scanner" "cmd/internal/src" ) // A Stack is a stack of TokenReaders. As the top TokenReader hits EOF, // it resumes reading the next one down. type Stack struct { tr []TokenReader }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Jan 09 22:33:23 UTC 2017 - 1.2K bytes - Viewed (0) -
src/cmd/asm/internal/lex/slice.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 ( "text/scanner" "cmd/internal/src" ) // A Slice reads from a slice of Tokens. type Slice struct { tokens []Token base *src.PosBase line int pos int } func NewSlice(base *src.PosBase, line int, tokens []Token) *Slice {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jun 29 22:49:50 UTC 2023 - 1.6K bytes - Viewed (0) -
src/cmd/asm/internal/asm/asm.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:04:54 UTC 2024 - 25.5K bytes - Viewed (0) -
src/cmd/asm/internal/asm/endtoend_test.go
package asm import ( "bufio" "bytes" "fmt" "internal/buildcfg" "os" "path/filepath" "regexp" "sort" "strconv" "strings" "testing" "cmd/asm/internal/lex" "cmd/internal/obj" ) // An end-to-end test for the assembler: Do we print what we parse? // Output is generated by, in effect, turning on -S and comparing the // result against a golden file.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Dec 07 18:42:59 UTC 2023 - 11.6K bytes - Viewed (0) -
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/text/template/parse/lex_test.go
// We expect an error, so the tree set and funcs list are explicitly nil. func (t *Tree) parseLexer(lex *lexer) (tree *Tree, err error) { defer t.recover(&err) t.ParseName = t.Name t.startParse(nil, lex, map[string]*Tree{}) t.parse() t.add() t.stopParse() return t, nil
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 23 15:03:43 UTC 2022 - 13.9K 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)