forked from mitchellh/go-mruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
value_type.go
58 lines (56 loc) · 1.36 KB
/
value_type.go
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
package mruby
// ValueType is an enum of types that a Value can be and is returned by
// Value.Type().
type ValueType uint32
const (
// TypeFalse is `false`
TypeFalse ValueType = iota
// TypeFree is ?
TypeFree
// TypeTrue is `true`
TypeTrue
// TypeFixnum is fixnums, or integers for this case.
TypeFixnum
// TypeSymbol is for entities in ruby that look like `:this`
TypeSymbol
// TypeUndef is a value internal to ruby for uninstantiated vars.
TypeUndef
// TypeFloat is any floating point number such as 1.2, etc.
TypeFloat
// TypeCptr is a void*
TypeCptr
// TypeObject is a standard ruby object, base class of most instantiated objects.
TypeObject
// TypeClass is the base class of all classes.
TypeClass
// TypeModule is the base class of all Modules.
TypeModule
// TypeIClass is ?
TypeIClass
// TypeSClass is ?
TypeSClass
// TypeProc are procs (concrete block definitons)
TypeProc
// TypeArray is []
TypeArray
// TypeHash is { }
TypeHash
// TypeString is ""
TypeString
// TypeRange is (0..x)
TypeRange
// TypeException is raised when using the raise keyword
TypeException
// TypeFile is for objects of the File class
TypeFile
// TypeEnv is for getenv/setenv etc
TypeEnv
// TypeData is ?
TypeData
// TypeFiber is for members of the Fiber class
TypeFiber
// TypeMaxDefine is ?
TypeMaxDefine
// TypeNil is nil
TypeNil ValueType = 0xffffffff
)