Go to the source code of this file.
◆ ENUM
◆ ps_type_field_arr_free
◆ ps_type_field_arr_new
| #define ps_type_field_arr_new |
( |
| ) |
ps_dynarr_new(struct ps_type_field_arr) |
◆ ps_type_tuple_free
◆ ps_type_tuple_new
| #define ps_type_tuple_new |
( |
| ) |
ps_dynarr_new(struct ps_type_tuple) |
◆ ps_type_variant_arr_free
◆ ps_type_variant_arr_new
| #define ps_type_variant_arr_new |
( |
| ) |
ps_dynarr_new(struct ps_type_variant_arr) |
◆ ps_type_type
The type of a type :)
Definition at line 60 of file type.h.
◆ ps_dynarr() [1/3]
| struct ps_type_tuple ps_dynarr |
( |
struct ps_type * |
| ) |
|
A struct ps_type_tuple is a list of struct ps_types.
- See also
- struct ps_type
◆ ps_dynarr() [2/3]
◆ ps_dynarr() [3/3]
◆ PS_IPRINT_DECL() [1/3]
◆ PS_IPRINT_DECL() [2/3]
◆ PS_IPRINT_DECL() [3/3]
◆ PS_PRINT_DECL() [1/4]
◆ PS_PRINT_DECL() [2/4]
| PS_PRINT_DECL |
( |
ps_type_field_arr |
| ) |
|
◆ PS_PRINT_DECL() [3/4]
| PS_PRINT_DECL |
( |
ps_type_tuple |
| ) |
|
◆ PS_PRINT_DECL() [4/4]
◆ ps_type_enum_add()
Adds the given variant variant to the struct type type.
- Precondition
type represents a enum type.
Definition at line 62 of file type.c.
◆ ps_type_enum_new()
Constructs a new empty enum type with the name name.
TODO: add trait implementations?
Definition at line 52 of file type.c.
◆ ps_type_from_name()
Returns the type associated with the given name (e.g.
a primitive type, a struct type).
- Precondition
name is a valid pulsar identifier.
Definition at line 76 of file type.c.
◆ ps_type_from_tuple()
| struct ps_type * ps_type_from_tuple |
( |
struct ps_type_tuple * |
tuple | ) |
|
Constructs and returns a type for the given tuple type tuple.
Definition at line 86 of file type.c.
◆ ps_type_is_prim()
Returns whether type represents a primitive type.
Definition at line 19 of file type.c.
◆ ps_type_prim_new()
Constructs a new primitive type specified by prim_type.
- Precondition
prim_type corresponds to a primitive type.
Definition at line 23 of file type.c.
◆ ps_type_struct_add()
Adds the given field field to the struct type type.
- Precondition
type represents a struct type.
Definition at line 47 of file type.c.
◆ ps_type_struct_new()
Constructs a new empty struct type with the name name.
TODO: add trait implementations
Definition at line 37 of file type.c.
◆ ps_type_unresolved_new()
Constructs a new unresolved type corresponding to the given name.
These types are resolved in later passes.
Definition at line 67 of file type.c.