Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 23 for newline (0.2 sec)

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

    // A TokenReader is like a reader, but returns lex tokens of type Token. It also can tell you what
    // the text of the most recently returned token is, and where it was found.
    // The underlying scanner elides all spaces except newline, so the input looks like a stream of
    // Tokens; original spacing is lost but we don't need it.
    type TokenReader interface {
    	// Next returns the next token.
    	Next() ScanToken
    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)
  2. src/cmd/asm/internal/lex/lex_test.go

    	},
    	{
    		"#define A() A()\nA()",
    		"recursive macro invocation",
    	},
    	{
    		"#define A a\n#define A a\n",
    		"redefinition of macro",
    	},
    	{
    		"#define A a",
    		"no newline after macro definition",
    	},
    }
    
    func TestBadLex(t *testing.T) {
    	for _, test := range badLexTests {
    		input := NewInput(test.error)
    		input.Push(NewTokenizer(test.error, strings.NewReader(test.input), nil))
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Aug 29 07:48:38 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  3. src/cmd/api/main_test.go

    	bs, err := os.ReadFile(filename)
    	if err != nil {
    		log.Fatal(err)
    	}
    	s := string(bs)
    
    	// Diagnose common mistakes people make,
    	// since there is no apifmt to format these files.
    	// The missing final newline is important for the
    	// final release step of cat next/*.txt >go1.X.txt.
    	// If the files don't end in full lines, the concatenation goes awry.
    	if strings.Contains(s, "\r") {
    		log.Printf("%s: contains CRLFs", filename)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Apr 09 20:48:51 GMT 2024
    - 31.4K bytes
    - Viewed (0)
  4. doc/go_spec.html

    </p>
    
    <h3 id="Characters">Characters</h3>
    
    <p>
    The following terms are used to denote specific Unicode character categories:
    </p>
    <pre class="ebnf">
    newline        = /* the Unicode code point U+000A */ .
    unicode_char   = /* an arbitrary Unicode code point except newline */ .
    unicode_letter = /* a Unicode code point categorized as "Letter" */ .
    unicode_digit  = /* a Unicode code point categorized as "Number, decimal digit" */ .
    </pre>
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
  5. src/cmd/asm/internal/asm/parse.go

    next:
    	// Skip newlines.
    	var tok lex.ScanToken
    	for {
    		tok = p.nextToken()
    		// We save the line number here so error messages from this instruction
    		// are labeled with this line. Otherwise we complain after we've absorbed
    		// the terminating newline and the line numbers are off by one in errors.
    		p.lineNum = p.lex.Line()
    		switch tok {
    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)
  6. api/go1.5.txt

    pkg go/types, func NewPointer(Type) *Pointer
    pkg go/types, func NewScope(*Scope, token.Pos, token.Pos, string) *Scope
    pkg go/types, func NewSignature(*Var, *Tuple, *Tuple, bool) *Signature
    pkg go/types, func NewSlice(Type) *Slice
    pkg go/types, func NewStruct([]*Var, []string) *Struct
    pkg go/types, func NewTuple(...*Var) *Tuple
    pkg go/types, func NewTypeName(token.Pos, *Package, string, Type) *TypeName
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  7. api/go1.3.txt

    pkg debug/plan9obj, const MagicAMD64 = 35479
    pkg debug/plan9obj, const MagicAMD64 ideal-int
    pkg debug/plan9obj, const MagicARM = 1607
    pkg debug/plan9obj, const MagicARM ideal-int
    pkg debug/plan9obj, func NewFile(io.ReaderAt) (*File, error)
    pkg debug/plan9obj, func Open(string) (*File, error)
    pkg debug/plan9obj, method (*File) Close() error
    pkg debug/plan9obj, method (*File) Section(string) *Section
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Mon Jun 02 02:45:00 GMT 2014
    - 117K bytes
    - Viewed (0)
  8. api/go1.txt

    pkg syscall (linux-386), const NETLINK_NFLOG ideal-int
    pkg syscall (linux-386), const NETLINK_NO_ENOBUFS ideal-int
    pkg syscall (linux-386), const NETLINK_PKTINFO ideal-int
    pkg syscall (linux-386), const NETLINK_ROUTE ideal-int
    pkg syscall (linux-386), const NETLINK_SCSITRANSPORT ideal-int
    pkg syscall (linux-386), const NETLINK_SELINUX ideal-int
    pkg syscall (linux-386), const NETLINK_UNUSED ideal-int
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Wed Aug 14 18:58:28 GMT 2013
    - 1.7M bytes
    - Viewed (2)
  9. misc/cgo/gmp/fib.go

    	// Keep the fibbers in dedicated operating system
    	// threads, so that this program tests coordination
    	// between pthreads and not just goroutines.
    	runtime.LockOSThread()
    
    	i := big.NewInt(n)
    	if n == 0 {
    		c <- i
    	}
    	for {
    		j := <-c
    		out <- j.String()
    		i.Add(i, j)
    		c <- i
    	}
    }
    
    func main() {
    	c := make(chan *big.Int)
    	out := make(chan string)
    	go fibber(c, out, 0)
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Apr 10 22:32:35 GMT 2023
    - 919 bytes
    - Viewed (0)
  10. api/go1.20.txt

    pkg syscall (linux-386-cgo), const CLONE_NEWCGROUP = 33554432 #51246
    pkg syscall (linux-386-cgo), const CLONE_NEWCGROUP ideal-int #51246
    pkg syscall (linux-386-cgo), const CLONE_NEWTIME = 128 #51246
    pkg syscall (linux-386-cgo), const CLONE_NEWTIME ideal-int #51246
    pkg syscall (linux-386-cgo), const CLONE_PIDFD = 4096 #51246
    pkg syscall (linux-386-cgo), const CLONE_PIDFD ideal-int #51246
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 21:23:32 GMT 2023
    - 602.6K bytes
    - Viewed (0)
Back to top