18 #define impl_afw_value_optional_release NULL
19 #define impl_afw_value_get_reference NULL
23 #define impl_afw_value_get_evaluated_metas \
24 afw_value_internal_get_evaluated_metas_default
27 #define AFW_IMPLEMENTATION_ID "variable_reference"
28 #define AFW_IMPLEMENTATION_INF_SPECIFIER AFW_DEFINE_CONST_DATA
29 #define AFW_IMPLEMENTATION_INF_LABEL afw_value_variable_reference_inf
46 self->contextual = contextual;
47 self->symbol = symbol;
86 impl_afw_value_get_data_type(
97 impl_afw_value_get_evaluated_data_type(
110 impl_afw_value_get_evaluated_data_type_parameter(
131 meta = afw_value_internal_create_meta_object_self(
133 meta->key =
self->symbol->name;
137 internal)->meta.meta_object;
139 return (
const afw_value_t *)& meta->meta_object_value;
147 impl_afw_value_produce_compiler_listing(
155 afw_value_compiler_listing_begin_value(writer, instance,
156 self->contextual, xctx);
173 impl_afw_value_decompile(
189 impl_afw_value_get_info(
199 info->value_inf_id = &instance->inf->rti.implementation_id;
200 info->contextual =
self->contextual;
AFW_DEFINE(const afw_object_t *)
Adaptive Framework Core Internal.
Interface afw_interface implementation declares.
#define afw_value_is_object(A_VALUE)
Macro to determine if value is evaluated object.
#define afw_memory_clear(to)
Clear preallocated memory for sizeof(*(to)).
#define afw_pool_calloc_type(instance, type, xctx)
Macro to allocate cleared memory to hold type in pool.
const afw_value_t * impl_afw_value_get_evaluated_meta(const afw_value_t *instance, const afw_pool_t *p, afw_xctx_t *xctx)
const afw_value_t * impl_afw_value_optional_evaluate(const afw_value_t *instance, const afw_pool_t *p, afw_xctx_t *xctx)
afw_value_variable_reference_inf
Value variable_reference inf.
afw_value_variable_reference_create(const afw_compile_value_contextual_t *contextual, const afw_value_block_symbol_t *symbol, const afw_pool_t *p, afw_xctx_t *xctx)
Create function for variable reference value.
#define afw_writer_write_eol(instance, xctx)
Call method write_eol of interface afw_writer.
#define afw_writer_write_z(writer, s_z, xctx)
Call afw_writer_write() with zero terminated string.
afw_writer_write_size(const afw_writer_t *writer, afw_size_t size, afw_xctx_t *xctx)
Call afw_writer_write() with an size.
#define afw_writer_write_utf8(writer, S, xctx)
Call afw_writer_write() with a afw_utf8_t string.
afw_xctx_get_qualified_variable(const afw_utf8_t *qualifier, const afw_utf8_t *name, afw_xctx_t *xctx)
Get a variable from xctx stack.
#define afw_xctx_evaluation_stack_push_value(VALUE, xctx)
Push VALUE onto execution stack.
#define afw_xctx_evaluation_stack_pop_value(xctx)
Pop top VALUE off execution stack.
Contextual information provided in some values.
Interface afw_data_type public struct.
const afw_compile_value_contextual_t * contextual
Contextual information or NULL.
Interface afw_pool public struct.
NFC normalized UTF-8 string.
struct for afw_value_block_symbol_t
Filled in by afw_value get_info method.
struct for data type object values.
Interface afw_value public struct.
Interface afw_writer public struct.
Interface afw_xctx public struct.