- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for FloatLit (0.11 sec)
-
src/cmd/compile/internal/syntax/scanner_test.go
// decimal floats {FloatLit, "0.", "0.", ""}, {FloatLit, "123.", "123.", ""}, {FloatLit, "0123.", "0123.", ""}, {FloatLit, ".0", ".0", ""}, {FloatLit, ".123", ".123", ""}, {FloatLit, ".0123", ".0123", ""}, {FloatLit, "0.0", "0.0", ""}, {FloatLit, "123.123", "123.123", ""}, {FloatLit, "0123.0123", "0123.0123", ""}, {FloatLit, "0e0", "0e0", ""},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 14 16:11:21 UTC 2022 - 21.9K bytes - Viewed (0) -
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) -
src/cmd/compile/internal/syntax/tokens.go
// 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 // Def is the : in :=
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/scanner.go
ok = false } } s.nextch() kind = FloatLit if s.ch == '+' || s.ch == '-' { s.nextch() } digsep = s.digits(10, nil) | digsep&2 // don't lose sep bit if digsep&1 == 0 && ok { s.errorf("exponent has no digits") ok = false } } else if prefix == 'x' && kind == FloatLit && ok { s.errorf("hexadecimal mantissa requires a 'p' exponent") ok = false }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 28 18:17:41 UTC 2022 - 17.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/operand.go
// 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: kind = UntypedString default: panic("unreachable") }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 21:17:10 UTC 2024 - 11K bytes - Viewed (0) -
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) -
src/cmd/compile/internal/types2/expr.go
goto Error case *syntax.BasicLit: if e.Bad { goto Error // error reported during parsing } switch e.Kind { case syntax.IntLit, syntax.FloatLit, syntax.ImagLit: check.langCompat(e) // The max. mantissa precision for untyped numeric values // is 512 bits, or 4048 bits for each of the two integer
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 02:09:54 UTC 2024 - 51.7K bytes - Viewed (0)