PrimitiveTypes enum
Enumeration of primitive types supported by the Balbismo language.
Balbismo supports two fundamental primitive types that map directly to LLVM types:
These types serve as the building blocks for more complex types like arrays.
Values
- int → const PrimitiveTypes
-
64-bit signed integer type, equivalent to LLVM's
i64
const PrimitiveTypes("i64")
- float → const PrimitiveTypes
-
Double precision floating point type, equivalent to LLVM's
double
const PrimitiveTypes("double")
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- irType → String
-
Returns the LLVM IR type representation for this primitive type.
no setter
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
Returns the LLVM IR type string representation of this primitive type.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromString(
String type) → PrimitiveTypes - Converts a string representation to the corresponding primitive type.
Constants
-
values
→ const List<
PrimitiveTypes> - A constant List of the values in this enum, in order of their declaration.