This repository was archived by the owner on Jul 22, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +50
-25
lines changed Expand file tree Collapse file tree 1 file changed +50
-25
lines changed Original file line number Diff line number Diff line change @@ -5,29 +5,54 @@ package mruby
5
5
type ValueType uint32
6
6
7
7
const (
8
- TypeFalse ValueType = iota // 0
9
- TypeFree // 1
10
- TypeTrue // 2
11
- TypeFixnum // 3
12
- TypeSymbol // 4
13
- TypeUndef // 5
14
- TypeFloat // 6
15
- TypeCptr // 7
16
- TypeObject // 8
17
- TypeClass // 9
18
- TypeModule // 10
19
- TypeIClass // 11
20
- TypeSClass // 12
21
- TypeProc // 13
22
- TypeArray // 14
23
- TypeHash // 15
24
- TypeString // 16
25
- TypeRange // 17
26
- TypeException // 18
27
- TypeFile // 19
28
- TypeEnv // 20
29
- TypeData // 21
30
- TypeFiber // 22
31
- TypeMaxDefine // 23
32
- TypeNil ValueType = 0xffffffff
8
+ // TypeFalse is `false`
9
+ TypeFalse ValueType = iota
10
+ // TypeFree is ?
11
+ TypeFree
12
+ // TypeTrue is `true`
13
+ TypeTrue
14
+ // TypeFixnum is fixnums, or integers for this case.
15
+ TypeFixnum
16
+ // TypeSymbol is for entities in ruby that look like `:this`
17
+ TypeSymbol
18
+ // TypeUndef is a value internal to ruby for uninstantiated vars.
19
+ TypeUndef
20
+ // TypeFloat is any floating point number such as 1.2, etc.
21
+ TypeFloat
22
+ // TypeCptr is a void*
23
+ TypeCptr
24
+ // TypeObject is a standard ruby object, base class of most instantiated objects.
25
+ TypeObject
26
+ // TypeClass is the base class of all classes.
27
+ TypeClass
28
+ // TypeModule is the base class of all Modules.
29
+ TypeModule
30
+ // TypeIClass is ?
31
+ TypeIClass
32
+ // TypeSClass is ?
33
+ TypeSClass
34
+ // TypeProc are procs (concrete block definitons)
35
+ TypeProc
36
+ // TypeArray is []
37
+ TypeArray
38
+ // TypeHash is { }
39
+ TypeHash
40
+ // TypeString is ""
41
+ TypeString
42
+ // TypeRange is (0..x)
43
+ TypeRange
44
+ // TypeException is raised when using the raise keyword
45
+ TypeException
46
+ // TypeFile is for objects of the File class
47
+ TypeFile
48
+ // TypeEnv is for getenv/setenv etc
49
+ TypeEnv
50
+ // TypeData is ?
51
+ TypeData
52
+ // TypeFiber is for members of the Fiber class
53
+ TypeFiber
54
+ // TypeMaxDefine is ?
55
+ TypeMaxDefine
56
+ // TypeNil is nil
57
+ TypeNil ValueType = 0xffffffff
33
58
)
You can’t perform that action at this time.
0 commit comments