Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 21 for Larsen (0.17 sec)

  1. src/cmd/asm/internal/asm/parse.go

    		p.start(op)
    		if name, abi, ok := p.funcAddress(); ok {
    			fmt.Fprintf(w, "ref %s %s\n", name, abi)
    		}
    	}
    }
    
    func (p *Parser) start(operand []lex.Token) {
    	p.input = operand
    	p.inputPos = 0
    }
    
    // address parses the operand into a link address structure.
    func (p *Parser) address(operand []lex.Token) obj.Addr {
    	p.start(operand)
    	addr := obj.Addr{}
    	p.operand(&addr)
    	return addr
    }
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  2. src/cmd/cgo/doc.go

    pkg-config directives are concatenated and sent to pkg-config simultaneously
    to add to each appropriate set of command-line flags.
    
    When the cgo directives are parsed, any occurrence of the string ${SRCDIR}
    will be replaced by the absolute path to the directory containing the source
    file. This allows pre-compiled static libraries to be included in the package
    directory and linked properly.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Sun Mar 31 09:02:45 GMT 2024
    - 42.1K bytes
    - Viewed (0)
  3. doc/go1.17_spec.html

    of an "if", "for", or "switch" statement, and the composite literal
    is not enclosed in parentheses, square brackets, or curly braces.
    In this rare case, the opening brace of the literal is erroneously parsed
    as the one introducing the block of statements. To resolve the ambiguity,
    the composite literal must appear within parentheses.
    </p>
    
    <pre>
    if x == (T{a,b,c}[i]) { … }
    if (x == T{a,b,c}[i]) { … }
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  4. src/cmd/asm/internal/asm/line_test.go

    	for i, test := range tests {
    		arch, ctxt := setArch(goarch)
    		tokenizer := lex.NewTokenizer("", strings.NewReader(test.input+"\n"), nil)
    		parser := NewParser(ctxt, arch, tokenizer)
    
    		err := tryParse(t, func() {
    			parser.Parse()
    		})
    
    		switch {
    		case err == nil:
    			t.Errorf("#%d: %q: want error %q; have none", i, test.input, test.error)
    		case !strings.Contains(err.Error(), test.error):
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 1.9K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/flags/flags.go

    package flags
    
    import (
    	"cmd/internal/obj"
    	"cmd/internal/objabi"
    	"flag"
    	"fmt"
    	"os"
    	"path/filepath"
    	"strings"
    )
    
    var (
    	Debug      = flag.Bool("debug", false, "dump instructions as they are parsed")
    	OutputFile = flag.String("o", "", "output file; default foo.o for /a/b/c/foo.s as first argument")
    	TrimPath   = flag.String("trimpath", "", "remove prefix from recorded source file paths")
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 22 19:18:23 GMT 2023
    - 2.8K bytes
    - Viewed (0)
  6. src/cmd/asm/internal/lex/input.go

    	"cmd/internal/objabi"
    	"cmd/internal/src"
    )
    
    // Input is the main input: a stack of readers and some macro definitions.
    // It also handles #include processing (by pushing onto the input stack)
    // and parses and instantiates macro definitions.
    type Input struct {
    	Stack
    	includes        []string
    	beginningOfLine bool
    	ifdefStack      []bool
    	macros          map[string]*Macro
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 12.6K bytes
    - Viewed (0)
  7. doc/go_spec.html

    <pre>
    type T[P *C] …
    type T[P (C)] …
    type T[P *C|Q] …
    …
    </pre>
    
    <p>
    In these rare cases, the type parameter list is indistinguishable from an
    expression and the type declaration is parsed as an array type declaration.
    To resolve the ambiguity, embed the constraint in an
    <a href="#Interface_types">interface</a> or use a trailing comma:
    </p>
    
    <pre>
    type T[P interface{*C}] …
    type T[P *C,] …
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  8. src/cmd/asm/internal/asm/endtoend_test.go

    	architecture, ctxt := setArch(goarch)
    	architecture.Init(ctxt)
    	lexer := lex.NewLexer(input)
    	parser := NewParser(ctxt, architecture, lexer)
    	pList := new(obj.Plist)
    	var ok bool
    	ctxt.Bso = bufio.NewWriter(os.Stdout)
    	ctxt.IsAsm = true
    	defer ctxt.Bso.Flush()
    	failed := false
    	var errBuf bytes.Buffer
    	parser.errorWriter = &errBuf
    	ctxt.DiagFunc = func(format string, args ...interface{}) {
    		failed = true
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  9. src/cmd/asm/internal/asm/asm.go

    	}
    	return true
    }
    
    // evalInteger evaluates an integer constant for a pseudo-op.
    func (p *Parser) evalInteger(pseudo string, operands []lex.Token) int64 {
    	addr := p.address(operands)
    	return p.getConstantPseudo(pseudo, &addr)
    }
    
    // validImmediate checks that addr represents an immediate constant.
    func (p *Parser) validImmediate(pseudo string, addr *obj.Addr) bool {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Wed Feb 21 14:34:57 GMT 2024
    - 25.3K bytes
    - Viewed (0)
  10. src/cmd/asm/internal/lex/lex.go

    type Macro struct {
    	name   string   // The #define name.
    	args   []string // Formal arguments.
    	tokens []Token  // Body of macro.
    }
    
    // Tokenize turns a string into a list of Tokens; used to parse the -D flag and in tests.
    func Tokenize(str string) []Token {
    	t := NewTokenizer("command line", strings.NewReader(str), nil)
    	var tokens []Token
    	for {
    		tok := t.Next()
    		if tok == scanner.EOF {
    			break
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 18:31:05 GMT 2023
    - 4.1K bytes
    - Viewed (0)
Back to top