Module: Wood::Types

Defined in:
lib/wood/types.rb

Defined Under Namespace

Modules: CommonType, TypeMatching Classes: AnyType, Array, BooleanType, BuiltinType, CompoundType, CustomType, NumericType

Constant Summary collapse

NUMERIC_TYPES =
Set.new
NON_NUMERIC_TYPES =
Set.new
Any =
AnyType.new :Any, :any, :Object, :object
Int =
NumericType.new :int
Float =
NumericType.new :float
Short =
NumericType.new :short
Long =
NumericType.new :long
Double =
NumericType.new :double
Char =
BuiltinType.new :char
String =
BuiltinType.new :string
Void =
BuiltinType.new :void
Null =
BuiltinType.new :null
Bool =
BooleanType.new :bool
U8 =
NumericType.new :u8,  :uint8_t
U16 =
NumericType.new :u16, :uint16_t
U32 =
NumericType.new :u32, :uint32_t
U64 =
NumericType.new :u64, :uint64_t
I8 =
NumericType.new :i8,  :int8_t
I16 =
NumericType.new :i16, :int16_t
I32 =
NumericType.new :i32, :int32_t
I64 =
NumericType.new :i64, :int64_t