Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for IntLit (0.15 sec)

  1. src/cmd/compile/internal/syntax/scanner_test.go

    		// 0-octals
    		{IntLit, "0", "0", ""},
    		{IntLit, "0123", "0123", ""},
    
    		{IntLit, "08123", "08123", "invalid digit '8' in octal literal"},
    		{IntLit, "01293", "01293", "invalid digit '9' in octal literal"},
    		{IntLit, "0F.", "0 F .", ""}, // only accept 0-9
    		{IntLit, "0123F.", "0123 F .", ""},
    		{IntLit, "0123456x", "0123456 x", ""},
    
    		// decimals
    		{IntLit, "1", "1", ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 14 16:11:21 UTC 2022
    - 21.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/util.go

    func makeFromLiteral(lit string, kind syntax.LitKind) constant.Value {
    	return constant.MakeFromLiteral(lit, kind2tok[kind], 0)
    }
    
    var kind2tok = [...]token.Token{
    	syntax.IntLit:    token.INT,
    	syntax.FloatLit:  token.FLOAT,
    	syntax.ImagLit:   token.IMAG,
    	syntax.RuneLit:   token.CHAR,
    	syntax.StringLit: token.STRING,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  3. src/runtime/symtab_test.go

    		{"mapLit[30]", mapLit[30], 30},
    		{"mapLit[31]", mapLit[31+firstLine] + firstLine, 31}, // nb it's the key not the value
    		{"mapLit[32]", mapLit[32+firstLine] + firstLine, 32}, // nb it's the key not the value
    
    		{"intLit", intLit - 2*firstLine, 34 + 35 + 36},
    
    		{"l38", l38, 38},
    		{"l39", l39, 39},
    		{"l40", l40, 40},
    	} {
    		if got := test.val - firstLine; got != test.want {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 17 21:46:33 UTC 2022
    - 7.5K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/syntax/tokens.go

    type LitKind uint8
    
    // TODO(gri) With the 'i' (imaginary) suffix now permitted on integer
    // and floating-point numbers, having a single ImagLit does
    // not represent the literal kind well anymore. Remove it?
    const (
    	IntLit LitKind = iota
    	FloatLit
    	ImagLit
    	RuneLit
    	StringLit
    )
    
    type Operator uint
    
    //go:generate stringer -type Operator -linecomment tokens.go
    
    const (
    	_ Operator = iota
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 20 14:52:38 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/syntax/scanner.go

    			ds := 1
    			if s.ch == '_' {
    				ds = 2
    			}
    			digsep |= ds
    			s.nextch()
    		}
    	}
    	return
    }
    
    func (s *scanner) number(seenPoint bool) {
    	ok := true
    	kind := IntLit
    	base := 10        // number base
    	prefix := rune(0) // one of 0 (decimal), '0' (0-octal), 'x', 'o', or 'b'
    	digsep := 0       // bit 0: digit present, bit 1: '_' present
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 28 18:17:41 UTC 2022
    - 17.1K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/operand.go

    	return operandString(x, nil)
    }
    
    // setConst sets x to the untyped constant for literal lit.
    func (x *operand) setConst(k syntax.LitKind, lit string) {
    	var kind BasicKind
    	switch k {
    	case syntax.IntLit:
    		kind = UntypedInt
    	case syntax.FloatLit:
    		kind = UntypedFloat
    	case syntax.ImagLit:
    		kind = UntypedComplex
    	case syntax.RuneLit:
    		kind = UntypedRune
    	case syntax.StringLit:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K bytes
    - Viewed (0)
  7. src/go/types/generate_test.go

    		insertImportPath(f, `"go/token"`)
    		renameImportPath(f, `"cmd/compile/internal/syntax"->"go/ast"`)
    		renameSelectorExprs(f,
    			"syntax.Pos->token.Pos", "syntax.LitKind->token.Token",
    			"syntax.IntLit->token.INT", "syntax.FloatLit->token.FLOAT",
    			"syntax.ImagLit->token.IMAG", "syntax.RuneLit->token.CHAR",
    			"syntax.StringLit->token.STRING") // must happen before renaming identifiers
    		renameIdents(f, "syntax->ast")
    	},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/expr.go

    		check.versionErrorf(lit, go1_13, "binary literal")
    		return
    	}
    	if radix == 'o' || radix == 'O' {
    		check.versionErrorf(lit, go1_13, "0o/0O-style octal literal")
    		return
    	}
    	if lit.Kind != syntax.IntLit && (radix == 'x' || radix == 'X') {
    		check.versionErrorf(lit, go1_13, "hexadecimal floating-point literal")
    	}
    }
    
    // exprInternal contains the core of type checking of expressions.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/rangefunc/rewrite.go

    }
    
    // intConst returns syntax for an integer literal with the given value.
    func (r *rewriter) intConst(c int) *syntax.BasicLit {
    	lit := &syntax.BasicLit{
    		Value: fmt.Sprint(c),
    		Kind:  syntax.IntLit,
    	}
    	tv := syntax.TypeAndValue{Type: r.int.Type(), Value: constant.MakeInt64(int64(c))}
    	tv.SetIsValue()
    	lit.SetTypeInfo(tv)
    	return lit
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 41.6K bytes
    - Viewed (0)
  10. okhttp/src/test/resources/okhttp3/internal/publicsuffix/public_suffix_list.dat

    insurance
    
    // insure : 2014-03-20 Binky Moon, LLC
    insure
    
    // international : 2013-11-07 Binky Moon, LLC
    international
    
    // intuit : 2015-07-30 Intuit Administrative Services, Inc.
    intuit
    
    // investments : 2014-03-20 Binky Moon, LLC
    investments
    
    // ipiranga : 2014-08-28 Ipiranga Produtos de Petroleo S.A.
    ipiranga
    
    // irish : 2014-08-07 Binky Moon, LLC
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Wed Dec 20 23:27:07 UTC 2023
    - 240.3K bytes
    - Viewed (0)
Back to top