/
builtin_feature.test
74 lines (70 loc) · 2.88 KB
/
builtin_feature.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
// Types
null // The null type and value
bool // All boolean values
int // All integral numbers
float // All decimal floating-point numbers
string // Any valid UTF-8 sequence
bytes // Any valid byte sequence
// Derived Value
number // int | float
uint // >=0
uint8 // >=0 & <=255
int8 // >=-128 & <=127
uint16 // >=0 & <=65536
int16 // >=-32_768 & <=32_767
rune // >=0 & <=0x10FFFF
uint32 // >=0 & <=4_294_967_296
int32 // >=-2_147_483_648 & <=2_147_483_647
uint64 // >=0 & <=18_446_744_073_709_551_615
int64 // >=-9_223_372_036_854_775_808 & <=9_223_372_036_854_775_807
uint128 // >=0 & <=340_282_366_920_938_463_463_374_607_431_768_211_455
int128 // >=-170_141_183_460_469_231_731_687_303_715_884_105_728 &
// <=170_141_183_460_469_231_731_687_303_715_884_105_727
float32 // >=-3.40282346638528859811704183484516925440e+38 &
// <=3.40282346638528859811704183484516925440e+38
float64 // >=-1.797693134862315708145274237317043567981e+308 &
// <=1.797693134862315708145274237317043567981e+308
----------------------------------------------------
[
["comment", "// Types"],
["keyword", "null"], ["comment", "// The null type and value"],
["builtin", "bool"], ["comment", "// All boolean values"],
["builtin", "int"], ["comment", "// All integral numbers"],
["builtin", "float"], ["comment", "// All decimal floating-point numbers"],
["builtin", "string"], ["comment", "// Any valid UTF-8 sequence"],
["builtin", "bytes"], ["comment", "// Any valid byte sequence"],
["comment", "// Derived Value"],
["builtin", "number"],
["comment", "// int | float"],
["builtin", "uint"],
["comment", "// >=0"],
["builtin", "uint8"],
["comment", "// >=0 & <=255"],
["builtin", "int8"],
["comment", "// >=-128 & <=127"],
["builtin", "uint16"],
["comment", "// >=0 & <=65536"],
["builtin", "int16"],
["comment", "// >=-32_768 & <=32_767"],
["builtin", "rune"],
["comment", "// >=0 & <=0x10FFFF"],
["builtin", "uint32"],
["comment", "// >=0 & <=4_294_967_296"],
["builtin", "int32"],
["comment", "// >=-2_147_483_648 & <=2_147_483_647"],
["builtin", "uint64"],
["comment", "// >=0 & <=18_446_744_073_709_551_615"],
["builtin", "int64"],
["comment", "// >=-9_223_372_036_854_775_808 & <=9_223_372_036_854_775_807"],
["builtin", "uint128"],
["comment", "// >=0 & <=340_282_366_920_938_463_463_374_607_431_768_211_455"],
["builtin", "int128"],
["comment", "// >=-170_141_183_460_469_231_731_687_303_715_884_105_728 &"],
["comment", "// <=170_141_183_460_469_231_731_687_303_715_884_105_727"],
["builtin", "float32"],
["comment", "// >=-3.40282346638528859811704183484516925440e+38 &"],
["comment", "// <=3.40282346638528859811704183484516925440e+38"],
["builtin", "float64"],
["comment", "// >=-1.797693134862315708145274237317043567981e+308 &"],
["comment", "// <=1.797693134862315708145274237317043567981e+308"]
]