|
Reduct
v1.0.4-3-gdaf0d70
A functional and immutable language.
|
Atom structure. More...
#include <atom.h>
Data Fields | ||
| reduct_uint32_t | length | |
The length of the string (must be first, check the reduct_item_t structure). | ||
| reduct_uint32_t | hash | |
| The hash of the string. | ||
| char | small [REDUCT_ATOM_SMALL_MAX] | |
| The small string buffer. | ||
| reduct_intrinsic_t | intrinsic | |
Cached intrinsic, item must have REDUCT_ITEM_FLAG_INTRINSIC. | ||
| char * | string | |
| Pointer to the string. | ||
| union { | ||
| reduct_int64_t integerValue | ||
Pre-computed integer value, item must have REDUCT_ITEM_FLAG_INT_SHAPED. More... | ||
| reduct_float_t floatValue | ||
Pre-computed float value, item must have REDUCT_ITEM_FLAG_FLOAT_SHAPED. More... | ||
| reduct_native_fn native | ||
Native function, item must have REDUCT_ITEM_FLAG_NATIVE. More... | ||
| }; | ||
| struct reduct_atom * | next | |
| Pointer to the next atom in the hash map. | ||
| reduct_uint32_t reduct_atom_t::length |
The length of the string (must be first, check the reduct_item_t structure).
| reduct_uint32_t reduct_atom_t::hash |
| char reduct_atom_t::small[REDUCT_ATOM_SMALL_MAX] |
| reduct_intrinsic_t reduct_atom_t::intrinsic |
| reduct_int64_t reduct_atom_t::integerValue |
| reduct_float_t reduct_atom_t::floatValue |
| reduct_native_fn reduct_atom_t::native |
| union { ... } reduct_atom_t |
| struct reduct_atom* reduct_atom_t::next |